Changeset 91883 in webkit for trunk/Source/JavaScriptCore/runtime/Executable.h
- Timestamp:
- Jul 27, 2011, 4:48:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Executable.h
r91194 r91883 406 406 } 407 407 408 JSObject* compileForCall(ExecState* exec, ScopeChainNode* scopeChainNode )408 JSObject* compileForCall(ExecState* exec, ScopeChainNode* scopeChainNode, ExecState* calleeArgsExec = 0) 409 409 { 410 410 ASSERT(exec->globalData().dynamicGlobalObject); 411 411 JSObject* error = 0; 412 412 if (!m_codeBlockForCall) 413 error = compileForCallInternal(exec, scopeChainNode );413 error = compileForCallInternal(exec, scopeChainNode, calleeArgsExec); 414 414 ASSERT(!error == !!m_codeBlockForCall); 415 415 return error; … … 450 450 JSObject* compileFor(ExecState* exec, ScopeChainNode* scopeChainNode, CodeSpecializationKind kind) 451 451 { 452 // compileFor should only be called with a callframe set up to call this function, 453 // since we will make speculative optimizations based on the arguments. 454 ASSERT(exec->callee()); 455 ASSERT(exec->callee()->inherits(&JSFunction::s_info)); 456 ASSERT(asFunction(exec->callee())->jsExecutable() == this); 457 452 458 if (kind == CodeForCall) 453 return compileForCall(exec, scopeChainNode );459 return compileForCall(exec, scopeChainNode, exec); 454 460 ASSERT(kind == CodeForConstruct); 455 461 return compileForConstruct(exec, scopeChainNode); … … 492 498 FunctionExecutable(ExecState*, const Identifier& name, const SourceCode&, bool forceUsesArguments, FunctionParameters*, bool, int firstLine, int lastLine); 493 499 494 JSObject* compileForCallInternal(ExecState*, ScopeChainNode* );500 JSObject* compileForCallInternal(ExecState*, ScopeChainNode*, ExecState* calleeArgsExec); 495 501 JSObject* compileForConstructInternal(ExecState*, ScopeChainNode*); 496 502
Note:
See TracChangeset
for help on using the changeset viewer.