Changeset 75510 in webkit for trunk/Source/JavaScriptCore/jit/JIT.cpp
- Timestamp:
- Jan 11, 2011, 10:27:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JIT.cpp
r75408 r75510 490 490 491 491 Label arityCheck; 492 Call callArityCheck;493 492 if (m_codeBlock->codeType() == FunctionCode) { 494 493 registerFileCheck.link(this); … … 505 504 branch32(Equal, regT1, Imm32(m_codeBlock->m_numParameters)).linkTo(beginLabel, this); 506 505 restoreArgumentReference(); 507 callArityCheck = call(); 508 move(regT0, callFrameRegister); 506 507 JITStubCall(this, m_codeBlock->m_isConstructor ? cti_op_construct_arityCheck : cti_op_call_arityCheck).call(callFrameRegister); 508 509 509 jump(beginLabel); 510 510 } … … 586 586 } 587 587 588 if (m_codeBlock->codeType() == FunctionCode && functionEntryArityCheck) { 589 patchBuffer.link(callArityCheck, FunctionPtr(m_codeBlock->m_isConstructor ? cti_op_construct_arityCheck : cti_op_call_arityCheck)); 588 if (m_codeBlock->codeType() == FunctionCode && functionEntryArityCheck) 590 589 *functionEntryArityCheck = patchBuffer.locationOf(arityCheck); 591 }592 590 593 591 return patchBuffer.finalizeCode();
Note:
See TracChangeset
for help on using the changeset viewer.