Changeset 94559 in webkit for trunk/Source/JavaScriptCore/runtime/Executable.h
- Timestamp:
- Sep 6, 2011, 2:23:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Executable.h
r94364 r94559 307 307 JSObject* error = 0; 308 308 if (!m_evalCodeBlock) 309 error = compileInternal(exec, scopeChainNode );309 error = compileInternal(exec, scopeChainNode, JITCode::bottomTierJIT()); 310 310 ASSERT(!error == !!m_evalCodeBlock); 311 311 return error; 312 312 } 313 314 JSObject* compileOptimized(ExecState*, ScopeChainNode*); 313 315 314 316 EvalCodeBlock& generatedBytecode() … … 345 347 EvalExecutable(ExecState*, const SourceCode&, bool); 346 348 347 JSObject* compileInternal(ExecState*, ScopeChainNode* );349 JSObject* compileInternal(ExecState*, ScopeChainNode*, JITCode::JITType); 348 350 virtual void visitChildren(SlotVisitor&); 349 351 void unlinkCalls(); … … 370 372 JSObject* error = 0; 371 373 if (!m_programCodeBlock) 372 error = compileInternal(exec, scopeChainNode );374 error = compileInternal(exec, scopeChainNode, JITCode::bottomTierJIT()); 373 375 ASSERT(!error == !!m_programCodeBlock); 374 376 return error; 375 377 } 378 379 JSObject* compileOptimized(ExecState*, ScopeChainNode*); 376 380 377 381 ProgramCodeBlock& generatedBytecode() … … 404 408 ProgramExecutable(ExecState*, const SourceCode&); 405 409 406 JSObject* compileInternal(ExecState*, ScopeChainNode* );410 JSObject* compileInternal(ExecState*, ScopeChainNode*, JITCode::JITType); 407 411 virtual void visitChildren(SlotVisitor&); 408 412 void unlinkCalls(); … … 451 455 JSObject* error = 0; 452 456 if (!m_codeBlockForCall) 453 error = compileForCallInternal(exec, scopeChainNode, calleeArgsExec );457 error = compileForCallInternal(exec, scopeChainNode, calleeArgsExec, JITCode::bottomTierJIT()); 454 458 ASSERT(!error == !!m_codeBlockForCall); 455 459 return error; 456 460 } 461 462 JSObject* compileOptimizedForCall(ExecState*, ScopeChainNode*, ExecState* calleeArgsExec = 0); 457 463 458 464 bool isGeneratedForCall() const … … 472 478 JSObject* error = 0; 473 479 if (!m_codeBlockForConstruct) 474 error = compileForConstructInternal(exec, scopeChainNode );480 error = compileForConstructInternal(exec, scopeChainNode, JITCode::bottomTierJIT()); 475 481 ASSERT(!error == !!m_codeBlockForConstruct); 476 482 return error; 477 483 } 484 485 JSObject* compileOptimizedForConstruct(ExecState*, ScopeChainNode*); 478 486 479 487 bool isGeneratedForConstruct() const … … 500 508 ASSERT(kind == CodeForConstruct); 501 509 return compileForConstruct(exec, scopeChainNode); 510 } 511 512 JSObject* compileOptimizedFor(ExecState* exec, ScopeChainNode* scopeChainNode, CodeSpecializationKind kind) 513 { 514 // compileOptimizedFor should only be called with a callframe set up to call this function, 515 // since we will make speculative optimizations based on the arguments. 516 ASSERT(exec->callee()); 517 ASSERT(exec->callee()->inherits(&JSFunction::s_info)); 518 ASSERT(asFunction(exec->callee())->jsExecutable() == this); 519 520 if (kind == CodeForCall) 521 return compileOptimizedForCall(exec, scopeChainNode, exec); 522 ASSERT(kind == CodeForConstruct); 523 return compileOptimizedForConstruct(exec, scopeChainNode); 502 524 } 503 525 … … 550 572 FunctionExecutable(ExecState*, const Identifier& name, const SourceCode&, bool forceUsesArguments, FunctionParameters*, bool); 551 573 552 JSObject* compileForCallInternal(ExecState*, ScopeChainNode*, ExecState* calleeArgsExec );553 JSObject* compileForConstructInternal(ExecState*, ScopeChainNode* );574 JSObject* compileForCallInternal(ExecState*, ScopeChainNode*, ExecState* calleeArgsExec, JITCode::JITType); 575 JSObject* compileForConstructInternal(ExecState*, ScopeChainNode*, JITCode::JITType); 554 576 555 577 static const unsigned StructureFlags = OverridesVisitChildren | ScriptExecutable::StructureFlags;
Note:
See TracChangeset
for help on using the changeset viewer.