diff --git a/src/scripting/vm/jit_call.cpp b/src/scripting/vm/jit_call.cpp index 2f92d0a42..7401c42fb 100644 --- a/src/scripting/vm/jit_call.cpp +++ b/src/scripting/vm/jit_call.cpp @@ -170,15 +170,14 @@ void JitCompiler::EmitDoCall(asmjit::X86Gp ptr) } auto result = newResultInt32(); - auto call = CreateCall(&JitCompiler::DoCall); + auto call = CreateCall(&JitCompiler::DoCall); call->setRet(0, result); - call->setArg(0, stack); - call->setArg(1, ptr); - call->setArg(2, Imm(B)); - call->setArg(3, Imm(C)); - call->setArg(4, paramsptr); - call->setArg(5, callReturns); - call->setArg(6, exceptInfo); + call->setArg(0, ptr); + call->setArg(1, Imm(B)); + call->setArg(2, Imm(C)); + call->setArg(3, paramsptr); + call->setArg(4, callReturns); + call->setArg(5, exceptInfo); EmitCheckForException(); @@ -215,15 +214,14 @@ void JitCompiler::EmitDoTail(asmjit::X86Gp ptr) } auto result = newResultInt32(); - auto call = CreateCall(&JitCompiler::DoCall); + auto call = CreateCall(&JitCompiler::DoCall); call->setRet(0, result); - call->setArg(0, stack); - call->setArg(1, ptr); - call->setArg(2, Imm(B)); - call->setArg(3, numret); - call->setArg(4, paramsptr); - call->setArg(5, ret); - call->setArg(6, exceptInfo); + call->setArg(0, ptr); + call->setArg(1, Imm(B)); + call->setArg(2, numret); + call->setArg(3, paramsptr); + call->setArg(4, ret); + call->setArg(5, exceptInfo); EmitPopFrame(); cc.ret(result); @@ -395,7 +393,7 @@ void JitCompiler::FillReturns(const VMOP *retval, int numret) } } -int JitCompiler::DoCall(VMFrameStack *stack, VMFunction *call, int b, int c, VMValue *param, VMReturn *returns, JitExceptionInfo *exceptinfo) +int JitCompiler::DoCall(VMFunction *call, int b, int c, VMValue *param, VMReturn *returns, JitExceptionInfo *exceptinfo) { try { diff --git a/src/scripting/vm/jitintern.h b/src/scripting/vm/jitintern.h index 44e03a2a1..2c23847c2 100644 --- a/src/scripting/vm/jitintern.h +++ b/src/scripting/vm/jitintern.h @@ -48,7 +48,7 @@ private: void LoadReturns(const VMOP *retval, int numret); void FillReturns(const VMOP *retval, int numret); void LoadCallResult(const VMOP &opdata, bool addrof); - static int DoCall(VMFrameStack *stack, VMFunction *call, int b, int c, VMValue *param, VMReturn *returns, JitExceptionInfo *exceptinfo); + static int DoCall(VMFunction *call, int b, int c, VMValue *param, VMReturn *returns, JitExceptionInfo *exceptinfo); template void EmitComparisonOpcode(Func jmpFunc)