- move VM creation into the jitted function. this will allow the jit compiler to skip vm frame creation when possible

This commit is contained in:
Magnus Norddahl 2018-10-09 03:37:11 +02:00
parent e930dfaae7
commit b7c0cd5d05
6 changed files with 77 additions and 30 deletions

View file

@ -39,6 +39,7 @@ private:
void Setup();
void EmitOpcode();
void EmitPopFrame();
void EmitDoCall(asmjit::X86Gp ptr);
void EmitDoTail(asmjit::X86Gp ptr);
@ -141,10 +142,12 @@ private:
asmjit::X86Compiler cc;
VMScriptFunction *sfunc;
asmjit::X86Gp stack;
asmjit::X86Gp args;
asmjit::X86Gp numargs;
asmjit::X86Gp ret;
asmjit::X86Gp numret;
asmjit::X86Gp exceptInfo;
asmjit::X86Gp stack;
int offsetExtra;
asmjit::X86Gp vmframe;