Ignore:
Timestamp:
Jan 21, 2012, 4:48:18 PM (13 years ago)
Author:
[email protected]
Message:

JIT compilation should not require ExecState
https://bugs.webkit.org/show_bug.cgi?id=76729
<rdar://problem/10731545>

Reviewed by Gavin Barraclough.

Changed the relevant JIT driver functions to take JSGlobalData& instead of
ExecState*, since really they just needed the global data.

  • dfg/DFGDriver.cpp:

(JSC::DFG::compile):
(JSC::DFG::tryCompile):
(JSC::DFG::tryCompileFunction):

  • dfg/DFGDriver.h:

(JSC::DFG::tryCompile):
(JSC::DFG::tryCompileFunction):

  • jit/JITDriver.h:

(JSC::jitCompileIfAppropriate):
(JSC::jitCompileFunctionIfAppropriate):

  • runtime/Executable.cpp:

(JSC::EvalExecutable::compileInternal):
(JSC::ProgramExecutable::compileInternal):
(JSC::FunctionExecutable::compileForCallInternal):
(JSC::FunctionExecutable::compileForConstructInternal):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGDriver.h

    r98082 r105579  
    3131namespace JSC {
    3232
    33 class ExecState;
    3433class CodeBlock;
    3534class JITCode;
     35class JSGlobalData;
    3636class MacroAssemblerCodePtr;
    3737
     
    3939
    4040#if ENABLE(DFG_JIT)
    41 bool tryCompile(ExecState*, CodeBlock*, JITCode&);
    42 bool tryCompileFunction(ExecState*, CodeBlock*, JITCode&, MacroAssemblerCodePtr& jitCodeWithArityCheck);
     41bool tryCompile(JSGlobalData&, CodeBlock*, JITCode&);
     42bool tryCompileFunction(JSGlobalData&, CodeBlock*, JITCode&, MacroAssemblerCodePtr& jitCodeWithArityCheck);
    4343#else
    44 inline bool tryCompile(ExecState*, CodeBlock*, JITCode&) { return false; }
    45 inline bool tryCompileFunction(ExecState*, CodeBlock*, JITCode&, MacroAssemblerCodePtr&) { return false; }
     44inline bool tryCompile(JSGlobalData&, CodeBlock*, JITCode&) { return false; }
     45inline bool tryCompileFunction(JSGlobalData&, CodeBlock*, JITCode&, MacroAssemblerCodePtr&) { return false; }
    4646#endif
    4747
Note: See TracChangeset for help on using the changeset viewer.