Changeset 47412 in webkit for trunk/JavaScriptCore/jit/JITOpcodes.cpp
- Timestamp:
- Aug 17, 2009, 10:34:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITOpcodes.cpp
r47089 r47412 69 69 70 70 // regT0 holds callee, regT1 holds argCount. 71 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSFunction, m_ body)), regT2);72 loadPtr(Address(regT2, OBJECT_OFFSETOF(Function BodyNode, m_code)), regT2);71 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSFunction, m_executable)), regT2); 72 loadPtr(Address(regT2, OBJECT_OFFSETOF(FunctionExecutable, m_codeBlock)), regT2); 73 73 Jump hasCodeBlock2 = branchTestPtr(NonZero, regT2); 74 74 … … 115 115 116 116 // regT0 holds callee, regT1 holds argCount. 117 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSFunction, m_ body)), regT2);118 loadPtr(Address(regT2, OBJECT_OFFSETOF(Function BodyNode, m_code)), regT2);117 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSFunction, m_executable)), regT2); 118 loadPtr(Address(regT2, OBJECT_OFFSETOF(FunctionExecutable, m_codeBlock)), regT2); 119 119 Jump hasCodeBlock3 = branchTestPtr(NonZero, regT2); 120 120 … … 147 147 isNativeFunc3.link(this); 148 148 compileOpCallInitializeCallFrame(); 149 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSFunction, m_ body)), regT0);150 loadPtr(Address(regT0, OBJECT_OFFSETOF(Function BodyNode, m_jitCode)), regT0);149 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSFunction, m_executable)), regT0); 150 loadPtr(Address(regT0, OBJECT_OFFSETOF(FunctionExecutable, m_jitCode)), regT0); 151 151 jump(regT0); 152 152 … … 545 545 { 546 546 JITStubCall stubCall(this, cti_op_new_func); 547 stubCall.addArgument(ImmPtr(m_codeBlock->function (currentInstruction[2].u.operand)));547 stubCall.addArgument(ImmPtr(m_codeBlock->functionDecl(currentInstruction[2].u.operand))); 548 548 stubCall.call(currentInstruction[1].u.operand); 549 549 } … … 1181 1181 { 1182 1182 JITStubCall stubCall(this, cti_op_new_func_exp); 1183 stubCall.addArgument(ImmPtr(m_codeBlock->function (currentInstruction[2].u.operand)));1183 stubCall.addArgument(ImmPtr(m_codeBlock->functionExpr(currentInstruction[2].u.operand))); 1184 1184 stubCall.call(currentInstruction[1].u.operand); 1185 1185 } … … 1488 1488 1489 1489 // Load the callee CodeBlock* into eax 1490 loadPtr(Address(regT2, OBJECT_OFFSETOF(JSFunction, m_ body)), regT3);1491 loadPtr(Address(regT3, OBJECT_OFFSETOF(Function BodyNode, m_code)), regT0);1490 loadPtr(Address(regT2, OBJECT_OFFSETOF(JSFunction, m_executable)), regT3); 1491 loadPtr(Address(regT3, OBJECT_OFFSETOF(FunctionExecutable, m_codeBlock)), regT0); 1492 1492 Jump hasCodeBlock2 = branchTestPtr(NonZero, regT0); 1493 1493 preserveReturnAddressAfterCall(regT3); … … 1528 1528 1529 1529 // Load the callee CodeBlock* into eax 1530 loadPtr(Address(regT2, OBJECT_OFFSETOF(JSFunction, m_ body)), regT3);1531 loadPtr(Address(regT3, OBJECT_OFFSETOF(Function BodyNode, m_code)), regT0);1530 loadPtr(Address(regT2, OBJECT_OFFSETOF(JSFunction, m_executable)), regT3); 1531 loadPtr(Address(regT3, OBJECT_OFFSETOF(FunctionExecutable, m_codeBlock)), regT0); 1532 1532 Jump hasCodeBlock3 = branchTestPtr(NonZero, regT0); 1533 1533 preserveReturnAddressAfterCall(regT3); … … 1537 1537 emitGetJITStubArg(3, regT1); 1538 1538 restoreReturnAddressBeforeReturn(regT3); 1539 loadPtr(Address(regT2, OBJECT_OFFSETOF(JSFunction, m_ body)), regT3); // reload the function body nody, so we can reload the code pointer.1539 loadPtr(Address(regT2, OBJECT_OFFSETOF(JSFunction, m_executable)), regT3); // reload the function body nody, so we can reload the code pointer. 1540 1540 hasCodeBlock3.link(this); 1541 1541 … … 1553 1553 emitGetJITStubArg(3, regT1); 1554 1554 restoreReturnAddressBeforeReturn(regT3); 1555 loadPtr(Address(regT2, OBJECT_OFFSETOF(JSFunction, m_ body)), regT3); // reload the function body nody, so we can reload the code pointer.1555 loadPtr(Address(regT2, OBJECT_OFFSETOF(JSFunction, m_executable)), regT3); // reload the function body nody, so we can reload the code pointer. 1556 1556 arityCheckOkay3.link(this); 1557 1557 isNativeFunc3.link(this); 1558 1558 1559 1559 // load ctiCode from the new codeBlock. 1560 loadPtr(Address(regT3, OBJECT_OFFSETOF(Function BodyNode, m_jitCode)), regT0);1560 loadPtr(Address(regT3, OBJECT_OFFSETOF(FunctionExecutable, m_jitCode)), regT0); 1561 1561 1562 1562 compileOpCallInitializeCallFrame(); … … 1972 1972 { 1973 1973 JITStubCall stubCall(this, cti_op_new_func); 1974 stubCall.addArgument(ImmPtr(m_codeBlock->function (currentInstruction[2].u.operand)));1974 stubCall.addArgument(ImmPtr(m_codeBlock->functionDecl(currentInstruction[2].u.operand))); 1975 1975 stubCall.call(currentInstruction[1].u.operand); 1976 1976 } … … 2326 2326 { 2327 2327 JITStubCall stubCall(this, cti_op_new_func_exp); 2328 stubCall.addArgument(ImmPtr(m_codeBlock->function (currentInstruction[2].u.operand)));2328 stubCall.addArgument(ImmPtr(m_codeBlock->functionExpr(currentInstruction[2].u.operand))); 2329 2329 stubCall.call(currentInstruction[1].u.operand); 2330 2330 }
Note:
See TracChangeset
for help on using the changeset viewer.