Changeset 94814 in webkit for trunk/Source/JavaScriptCore/heap/Heap.h
- Timestamp:
- Sep 8, 2011, 3:52:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/Heap.h
r94522 r94814 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 … … 164 167 165 168 static void writeBarrierSlowCase(const JSCell*, JSCell*); 166 169 167 170 #if ENABLE(LAZY_BLOCK_FREEING) 168 171 void waitForRelativeTimeWhileHoldingLock(double relative); … … 360 363 } 361 364 365 inline void* Heap::allocatePropertyStorage(size_t bytes) 366 { 367 ASSERT(!(bytes % sizeof(JSValue))); 368 if (bytes >= NewSpace::PropertyStorageNurserySize) 369 return 0; 370 if (void* result = m_newSpace.allocatePropertyStorage(bytes)) 371 return result; 372 collect(DoNotSweep); 373 return m_newSpace.allocatePropertyStorage(bytes); 374 } 375 376 inline bool Heap::inPropertyStorageNursery(void* ptr) 377 { 378 return m_newSpace.inPropertyStorageNursery(ptr); 379 } 380 362 381 } // namespace JSC 363 382
Note:
See TracChangeset
for help on using the changeset viewer.