Changeset 111973 in webkit for trunk/Source/JavaScriptCore/heap/CopiedSpace.cpp
- Timestamp:
- Mar 23, 2012, 8:11:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/CopiedSpace.cpp
r111877 r111973 101 101 102 102 if (m_allocator.wasLastAllocation(oldPtr, oldSize)) { 103 m_allocator.resetLastAllocation(oldPtr); 104 if (m_allocator.fitsInCurrentBlock(newSize)) 105 return m_allocator.allocate(newSize); 103 size_t delta = newSize - oldSize; 104 if (m_allocator.fitsInCurrentBlock(delta)) { 105 (void)m_allocator.allocate(delta); 106 return true; 107 } 106 108 } 107 109
Note:
See TracChangeset
for help on using the changeset viewer.