Changeset 94445 in webkit for trunk/Source/JavaScriptCore/heap/Heap.h
- Timestamp:
- Sep 2, 2011, 1:41:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/Heap.h
r93918 r94445 92 92 void collectAllGarbage(); 93 93 94 inline void* allocatePropertyStorage(size_t); 95 inline bool inPropertyStorageNursery(void*); 96 94 97 void reportExtraMemoryCost(size_t cost); 95 98 … … 359 362 } 360 363 364 inline void* Heap::allocatePropertyStorage(size_t bytes) 365 { 366 ASSERT(!(bytes % sizeof(JSValue))); 367 if (bytes >= NewSpace::PropertyStorageNurserySize) 368 return fastMalloc(bytes); 369 if (void* result = m_newSpace.allocatePropertyStorage(bytes)) 370 return result; 371 collect(DoNotSweep); 372 return m_newSpace.allocatePropertyStorage(bytes); 373 } 374 375 inline bool Heap::inPropertyStorageNursery(void* ptr) 376 { 377 return m_newSpace.inPropertyStorageNursery(ptr); 378 } 379 361 380 } // namespace JSC 362 381
Note:
See TracChangeset
for help on using the changeset viewer.