Changeset 47641 in webkit for trunk/JavaScriptCore/jit
- Timestamp:
- Aug 21, 2009, 2:54:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITStubs.cpp
r47597 r47641 1481 1481 1482 1482 JSFunction* function = asFunction(stackFrame.args[0].jsValue()); 1483 FunctionExecutable* executable = function->executable();1484 ASSERT(!executable->isHostFunction());1483 ASSERT(!function->isHostFunction()); 1484 FunctionExecutable* executable = function->jsExecutable(); 1485 1485 ScopeChainNode* callDataScopeChain = function->scope().node(); 1486 1486 executable->jitCode(callDataScopeChain); … … 1495 1495 CallFrame* callFrame = stackFrame.callFrame; 1496 1496 JSFunction* callee = asFunction(stackFrame.args[0].jsValue()); 1497 CodeBlock* newCodeBlock = &callee->executable()->generatedBytecode(); 1497 ASSERT(!callee->isHostFunction()); 1498 CodeBlock* newCodeBlock = &callee->jsExecutable()->generatedBytecode(); 1498 1499 int argCount = stackFrame.args[2].int32(); 1499 1500 … … 1540 1541 STUB_INIT_STACK_FRAME(stackFrame); 1541 1542 JSFunction* callee = asFunction(stackFrame.args[0].jsValue()); 1542 FunctionExecutable* executable = callee->executable();1543 ExecutableBase* executable = callee->executable(); 1543 1544 JITCode& jitCode = executable->generatedJITCode(); 1544 1545 1545 1546 CodeBlock* codeBlock = 0; 1546 1547 if (!executable->isHostFunction()) 1547 codeBlock = & executable->bytecode(callee->scope().node());1548 codeBlock = &static_cast<FunctionExecutable*>(executable)->bytecode(callee->scope().node()); 1548 1549 CallLinkInfo* callLinkInfo = &stackFrame.callFrame->callerFrame()->codeBlock()->getCallLinkInfo(stackFrame.args[1].returnAddress()); 1549 1550 … … 1715 1716 1716 1717 JSFunction* constructor = asFunction(stackFrame.args[0].jsValue()); 1717 FunctionExecutable* executable = constructor->executable(); 1718 if (executable && executable->isHostFunction()) { 1718 if (constructor->isHostFunction()) { 1719 1719 CallFrame* callFrame = stackFrame.callFrame; 1720 1720 CodeBlock* codeBlock = callFrame->codeBlock(); … … 2043 2043 VM_THROW_EXCEPTION(); 2044 2044 } 2045 int32_t expectedParams = callFrame->callee()-> executable()->parameterCount();2045 int32_t expectedParams = callFrame->callee()->jsExecutable()->parameterCount(); 2046 2046 int32_t inplaceArgs = min(providedParams, expectedParams); 2047 2047
Note:
See TracChangeset
for help on using the changeset viewer.