Changeset 218977 in webkit for trunk/Source/JavaScriptCore/runtime/JSArray.cpp
- Timestamp:
- Jun 29, 2017, 5:58:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSArray.cpp
r217869 r218977 378 378 unsigned postCapacity = 0; 379 379 if (!addToFront) 380 postCapacity = max(newStorageCapacity - requiredVectorLength, count);380 postCapacity = newStorageCapacity - requiredVectorLength; 381 381 else if (length < storage->vectorLength()) { 382 382 // Atomic decay, + the post-capacity cannot be greater than what is available. … … 387 387 388 388 unsigned newVectorLength = requiredVectorLength + postCapacity; 389 RELEASE_ASSERT(newVectorLength <= MAX_STORAGE_VECTOR_LENGTH); 389 390 unsigned newIndexBias = newStorageCapacity - newVectorLength; 390 391
Note:
See TracChangeset
for help on using the changeset viewer.