Changeset 10563 in webkit for trunk/JavaScriptCore/kjs/fast_malloc.cpp
- Timestamp:
- Sep 18, 2005, 11:57:28 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/fast_malloc.cpp
r10457 r10563 237 237 #endif 238 238 239 #include "internal.h" 240 239 241 namespace KJS { 240 242 … … 245 247 void *kjs_fast_malloc(size_t n) 246 248 { 249 assert(InterpreterImp::lockCount() > 0); 247 250 return malloc(n); 248 251 } … … 250 253 void *kjs_fast_calloc(size_t n_elements, size_t element_size) 251 254 { 255 assert(InterpreterImp::lockCount() > 0); 252 256 return calloc(n_elements, element_size); 253 257 } … … 255 259 void kjs_fast_free(void* p) 256 260 { 261 assert(InterpreterImp::lockCount() > 0); 257 262 free(p); 258 263 } … … 260 265 void *kjs_fast_realloc(void* p, size_t n) 261 266 { 267 assert(InterpreterImp::lockCount() > 0); 262 268 return realloc(p, n); 263 269 } … … 5458 5464 #endif /* WIN32 */ 5459 5465 5460 #endif 5466 #endif // NDEBUG 5461 5467 5462 5468 } /* end of namespace KJS */
Note:
See TracChangeset
for help on using the changeset viewer.