Changeset 222382 in webkit for trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp
- Timestamp:
- Sep 22, 2017, 3:25:58 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp
r222380 r222382 4239 4239 if (!globalObject->isHavingABadTime() && !hasAnyArrayStorage(indexingType)) { 4240 4240 unsigned numElements = node->numConstants(); 4241 unsigned vectorLengthHint = node->vectorLengthHint();4242 ASSERT(vectorLengthHint >= numElements);4243 4241 4244 4242 GPRTemporary result(this); … … 4248 4246 GPRReg storageGPR = storage.gpr(); 4249 4247 4250 emitAllocateRawObject(resultGPR, m_jit.graph().registerStructure(globalObject->arrayStructureForIndexingTypeDuringAllocation(indexingType)), storageGPR, numElements, vectorLengthHint);4248 emitAllocateRawObject(resultGPR, m_jit.graph().registerStructure(globalObject->arrayStructureForIndexingTypeDuringAllocation(indexingType)), storageGPR, numElements, numElements); 4251 4249 4252 4250 DFG_ASSERT(m_jit.graph(), node, indexingType & IsArray);
Note:
See TracChangeset
for help on using the changeset viewer.