Changeset 94522 in webkit for trunk/Source/JavaScriptCore/heap/Heap.h
- Timestamp:
- Sep 5, 2011, 3:43:34 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/Heap.h
r94477 r94522 92 92 void collectAllGarbage(); 93 93 94 inline void* allocatePropertyStorage(size_t);95 inline bool inPropertyStorageNursery(void*);96 97 94 void reportExtraMemoryCost(size_t cost); 98 95 … … 363 360 } 364 361 365 inline void* Heap::allocatePropertyStorage(size_t bytes)366 {367 ASSERT(!(bytes % sizeof(JSValue)));368 if (bytes >= NewSpace::PropertyStorageNurserySize)369 return fastMalloc(bytes);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 381 362 } // namespace JSC 382 363
Note:
See TracChangeset
for help on using the changeset viewer.