From b92e5fbf2a23eb0d8fd909db00f09c6f23ef07ae Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Thu, 13 Sep 2018 02:56:02 +0200 Subject: [PATCH] - move EmitRESULT to jit_call --- src/scripting/vm/jit_call.cpp | 7 +++++++ src/scripting/vm/jit_flow.cpp | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/scripting/vm/jit_call.cpp b/src/scripting/vm/jit_call.cpp index 79409ccd48..d1a10d82cd 100644 --- a/src/scripting/vm/jit_call.cpp +++ b/src/scripting/vm/jit_call.cpp @@ -106,6 +106,13 @@ void JitCompiler::EmitPARAMI() cc.mov(asmjit::x86::byte_ptr(params, index * sizeof(VMValue) + offsetof(VMValue, Type)), (int)REGT_INT); } +void JitCompiler::EmitRESULT() +{ + // This instruction is just a placeholder to indicate where a return + // value should be stored. It does nothing on its own and should not + // be executed. +} + void JitCompiler::EmitCALL() { EmitDoCall(regA[A]); diff --git a/src/scripting/vm/jit_flow.cpp b/src/scripting/vm/jit_flow.cpp index b999409886..cbe2e93bda 100644 --- a/src/scripting/vm/jit_flow.cpp +++ b/src/scripting/vm/jit_flow.cpp @@ -85,13 +85,6 @@ void JitCompiler::EmitSCOPE() cc.bind(notzero); } -void JitCompiler::EmitRESULT() -{ - // This instruction is just a placeholder to indicate where a return - // value should be stored. It does nothing on its own and should not - // be executed. -} - void JitCompiler::EmitRET() { using namespace asmjit;