From ac28f0d34f8285aa608217299eaa60ce6ec43301 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 16 Nov 2018 01:33:41 +0100 Subject: [PATCH] - remove unused argument --- src/scripting/vm/jit.cpp | 8 ++++---- src/scripting/vm/jitintern.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/scripting/vm/jit.cpp b/src/scripting/vm/jit.cpp index 53272bb05..d292a9d26 100644 --- a/src/scripting/vm/jit.cpp +++ b/src/scripting/vm/jit.cpp @@ -502,10 +502,10 @@ void JitCompiler::SetupFrame() cc.cmp(numargs, sfunc->NumArgs); cc.jne(slowinit); - SetupSimpleFrame(vmstack); + SetupSimpleFrame(); cc.jmp(endinit); cc.bind(slowinit); - SetupSimpleFrameMissingArgs(vmstack); // Does this ever happen? + SetupSimpleFrameMissingArgs(); // Does this ever happen? cc.bind(endinit); } else @@ -514,7 +514,7 @@ void JitCompiler::SetupFrame() } } -void JitCompiler::SetupSimpleFrame(asmjit::X86Mem vmstack) +void JitCompiler::SetupSimpleFrame() { using namespace asmjit; @@ -569,7 +569,7 @@ void JitCompiler::SetupSimpleFrame(asmjit::X86Mem vmstack) cc.xor_(regA[i], regA[i]); } -void JitCompiler::SetupSimpleFrameMissingArgs(asmjit::X86Mem vmstack) +void JitCompiler::SetupSimpleFrameMissingArgs() { using namespace asmjit; diff --git a/src/scripting/vm/jitintern.h b/src/scripting/vm/jitintern.h index 0f7cc7442..1e70ec6ed 100644 --- a/src/scripting/vm/jitintern.h +++ b/src/scripting/vm/jitintern.h @@ -42,8 +42,8 @@ private: void CreateRegisters(); void IncrementVMCalls(); void SetupFrame(); - void SetupSimpleFrame(asmjit::X86Mem vmstack); - void SetupSimpleFrameMissingArgs(asmjit::X86Mem vmstack); + void SetupSimpleFrame(); + void SetupSimpleFrameMissingArgs(); void SetupFullVMFrame(); void BindLabels(); void EmitOpcode();