Changeset 47412 in webkit for trunk/JavaScriptCore/jit/JITStubs.cpp
- Timestamp:
- Aug 17, 2009, 10:34:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITStubs.cpp
r47236 r47412 1481 1481 1482 1482 JSFunction* function = asFunction(stackFrame.args[0].jsValue()); 1483 Function BodyNode* body = function->body();1484 ASSERT(! body->isHostFunction());1483 FunctionExecutable* executable = function->executable(); 1484 ASSERT(!executable->isHostFunction()); 1485 1485 ScopeChainNode* callDataScopeChain = function->scope().node(); 1486 body->jitCode(callDataScopeChain);1487 1488 return & body->generatedBytecode();1486 executable->jitCode(callDataScopeChain); 1487 1488 return &executable->generatedBytecode(); 1489 1489 } 1490 1490 … … 1540 1540 STUB_INIT_STACK_FRAME(stackFrame); 1541 1541 JSFunction* callee = asFunction(stackFrame.args[0].jsValue()); 1542 Function BodyNode* body = callee->body();1543 JITCode& jitCode = body->generatedJITCode();1542 FunctionExecutable* executable = callee->executable(); 1543 JITCode& jitCode = executable->generatedJITCode(); 1544 1544 1545 1545 CodeBlock* codeBlock = 0; 1546 if (! body->isHostFunction())1547 codeBlock = & body->bytecode(callee->scope().node());1546 if (!executable->isHostFunction()) 1547 codeBlock = &executable->bytecode(callee->scope().node()); 1548 1548 else 1549 codeBlock = & body->generatedBytecode();1549 codeBlock = &executable->generatedBytecode(); 1550 1550 CallLinkInfo* callLinkInfo = &stackFrame.callFrame->callerFrame()->codeBlock()->getCallLinkInfo(stackFrame.args[1].returnAddress()); 1551 1551 … … 1563 1563 STUB_INIT_STACK_FRAME(stackFrame); 1564 1564 1565 JSActivation* activation = new (stackFrame.globalData) JSActivation(stackFrame.callFrame, static_cast<Function BodyNode*>(stackFrame.callFrame->codeBlock()->ownerNode()));1565 JSActivation* activation = new (stackFrame.globalData) JSActivation(stackFrame.callFrame, static_cast<FunctionExecutable*>(stackFrame.callFrame->codeBlock()->ownerExecutable())); 1566 1566 stackFrame.callFrame->setScopeChain(stackFrame.callFrame->scopeChain()->copy()->push(activation)); 1567 1567 return activation; … … 1717 1717 1718 1718 JSFunction* constructor = asFunction(stackFrame.args[0].jsValue()); 1719 Function BodyNode* body = constructor->body();1720 if ( body && body->isHostFunction()) {1719 FunctionExecutable* executable = constructor->executable(); 1720 if (executable && executable->isHostFunction()) { 1721 1721 CallFrame* callFrame = stackFrame.callFrame; 1722 1722 CodeBlock* codeBlock = callFrame->codeBlock(); … … 2045 2045 VM_THROW_EXCEPTION(); 2046 2046 } 2047 int32_t expectedParams = callFrame->callee()-> body()->parameterCount();2047 int32_t expectedParams = callFrame->callee()->executable()->parameterCount(); 2048 2048 int32_t inplaceArgs = min(providedParams, expectedParams); 2049 2049 … … 2522 2522 CallFrame* callFrame = stackFrame.callFrame; 2523 2523 2524 Function BodyNode* body= stackFrame.args[0].function();2525 JSFunction* func = body->make(callFrame, callFrame->scopeChain());2524 FunctionExecutable* function = stackFrame.args[0].function(); 2525 JSFunction* func = function->make(callFrame, callFrame->scopeChain()); 2526 2526 2527 2527 /* … … 2532 2532 does not affect the scope enclosing the FunctionExpression. 2533 2533 */ 2534 if (! body->ident().isNull()) {2535 JSStaticScopeObject* functionScopeObject = new (callFrame) JSStaticScopeObject(callFrame, body->ident(), func, ReadOnly | DontDelete);2534 if (!function->name().isNull()) { 2535 JSStaticScopeObject* functionScopeObject = new (callFrame) JSStaticScopeObject(callFrame, function->name(), func, ReadOnly | DontDelete); 2536 2536 func->scope().push(functionScopeObject); 2537 2537 } … … 2997 2997 2998 2998 unsigned lineNumber = codeBlock->lineNumberForBytecodeOffset(callFrame, bytecodeOffset); 2999 return Error::create(callFrame, static_cast<ErrorType>(type), message.toString(callFrame), lineNumber, codeBlock->owner Node()->sourceID(), codeBlock->ownerNode()->sourceURL());2999 return Error::create(callFrame, static_cast<ErrorType>(type), message.toString(callFrame), lineNumber, codeBlock->ownerExecutable()->sourceID(), codeBlock->ownerExecutable()->sourceURL()); 3000 3000 } 3001 3001
Note:
See TracChangeset
for help on using the changeset viewer.