X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/a253471d7f8e4d91bf6ebabab00155c3b387d3d0..93a3786624b2768d89bfa27e46598dc64e2fb70a:/dfg/DFGDriver.h?ds=inline diff --git a/dfg/DFGDriver.h b/dfg/DFGDriver.h index 639b13f..2b50484 100644 --- a/dfg/DFGDriver.h +++ b/dfg/DFGDriver.h @@ -26,23 +26,26 @@ #ifndef DFGDriver_h #define DFGDriver_h +#include "CallFrame.h" #include namespace JSC { class CodeBlock; class JITCode; -class JSGlobalData; +class VM; class MacroAssemblerCodePtr; namespace DFG { +JS_EXPORT_PRIVATE unsigned getNumCompilations(); + #if ENABLE(DFG_JIT) -bool tryCompile(JSGlobalData&, CodeBlock*, JITCode&); -bool tryCompileFunction(JSGlobalData&, CodeBlock*, JITCode&, MacroAssemblerCodePtr& jitCodeWithArityCheck); +bool tryCompile(ExecState*, CodeBlock*, JITCode&, unsigned bytecodeIndex); +bool tryCompileFunction(ExecState*, CodeBlock*, JITCode&, MacroAssemblerCodePtr& jitCodeWithArityCheck, unsigned bytecodeIndex); #else -inline bool tryCompile(JSGlobalData&, CodeBlock*, JITCode&) { return false; } -inline bool tryCompileFunction(JSGlobalData&, CodeBlock*, JITCode&, MacroAssemblerCodePtr&) { return false; } +inline bool tryCompile(ExecState*, CodeBlock*, JITCode&, unsigned) { return false; } +inline bool tryCompileFunction(ExecState*, CodeBlock*, JITCode&, MacroAssemblerCodePtr&, unsigned) { return false; } #endif } } // namespace JSC::DFG