Changeset 47089 in webkit for trunk/JavaScriptCore/jit/JITStubs.cpp
- Timestamp:
- Aug 11, 2009, 10:22:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITStubs.cpp
r46879 r47089 1468 1468 STUB_INIT_STACK_FRAME(stackFrame); 1469 1469 1470 return stackFrame.args[0].func DeclNode()->makeFunction(stackFrame.callFrame, stackFrame.callFrame->scopeChain());1470 return stackFrame.args[0].function()->make(stackFrame.callFrame, stackFrame.callFrame->scopeChain()); 1471 1471 } 1472 1472 … … 2518 2518 { 2519 2519 STUB_INIT_STACK_FRAME(stackFrame); 2520 2521 return stackFrame.args[0].funcExprNode()->makeFunction(stackFrame.callFrame, stackFrame.callFrame->scopeChain()); 2520 CallFrame* callFrame = stackFrame.callFrame; 2521 2522 FunctionBodyNode* body = stackFrame.args[0].function(); 2523 JSFunction* func = body->make(callFrame, callFrame->scopeChain()); 2524 2525 /* 2526 The Identifier in a FunctionExpression can be referenced from inside 2527 the FunctionExpression's FunctionBody to allow the function to call 2528 itself recursively. However, unlike in a FunctionDeclaration, the 2529 Identifier in a FunctionExpression cannot be referenced from and 2530 does not affect the scope enclosing the FunctionExpression. 2531 */ 2532 if (!body->ident().isNull()) { 2533 JSStaticScopeObject* functionScopeObject = new (callFrame) JSStaticScopeObject(callFrame, body->ident(), func, ReadOnly | DontDelete); 2534 func->scope().push(functionScopeObject); 2535 } 2536 2537 return func; 2522 2538 } 2523 2539
Note:
See TracChangeset
for help on using the changeset viewer.