Changeset 67494 in webkit for trunk/JavaScriptCore/runtime/JSArray.cpp
- Timestamp:
- Sep 14, 2010, 2:06:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSArray.cpp
r66004 r67494 1061 1061 return; 1062 1062 1063 if (!storage->m_length)1064 return;1065 1066 1063 unsigned usedVectorLength = min(storage->m_length, m_vectorLength); 1064 unsigned nodeCount = usedVectorLength + (storage->m_sparseValueMap ? storage->m_sparseValueMap->size() : 0); 1065 1066 if (!nodeCount) 1067 return; 1067 1068 1068 1069 AVLTree<AVLTreeAbstractorForArrayCompare, 44> tree; // Depth 44 is enough for 2^31 items … … 1072 1073 tree.abstractor().m_compareCallData = &callData; 1073 1074 tree.abstractor().m_globalThisValue = exec->globalThisValue(); 1074 tree.abstractor().m_nodes. resize(usedVectorLength + (storage->m_sparseValueMap ? storage->m_sparseValueMap->size() : 0));1075 tree.abstractor().m_nodes.grow(nodeCount); 1075 1076 1076 1077 if (callType == CallTypeJS)
Note:
See TracChangeset
for help on using the changeset viewer.