Changeset 40339 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Jan 28, 2009, 4:26:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSArray.cpp
r40046 r40339 176 176 m_storage = storage; 177 177 178 // When the array is created non-empty, its cells are filled, so it's really no worse than 179 // a property map. Therefore don't report extra memory cost. 178 Heap::heap(this)->reportExtraMemoryCost(storageSize(length)); 180 179 181 180 checkConsistency(); … … 350 349 351 350 unsigned vectorLength = storage->m_vectorLength; 351 352 Heap::heap(this)->reportExtraMemoryCost(storageSize(newVectorLength) - storageSize(vectorLength)); 353 352 354 if (newNumValuesInVector == storage->m_numValuesInVector + 1) { 353 355 for (unsigned j = vectorLength; j < newVectorLength; ++j) … … 463 465 return false; 464 466 467 Heap::heap(this)->reportExtraMemoryCost(storageSize(newVectorLength) - storageSize(vectorLength)); 465 468 storage->m_vectorLength = newVectorLength; 466 469
Note:
See TracChangeset
for help on using the changeset viewer.