From 16fa9e0fa62fd915d1b1a3b9ad246eef28f575bb Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sun, 6 May 2007 06:44:18 +0000 Subject: [PATCH] Oh, I forgot about this --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40750 --- extensions/bintools/jit_call.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/bintools/jit_call.cpp b/extensions/bintools/jit_call.cpp index bb747830..28066981 100644 --- a/extensions/bintools/jit_call.cpp +++ b/extensions/bintools/jit_call.cpp @@ -503,13 +503,14 @@ void JIT_Compile(CallWrapper *pWrapper, FuncAddrMethod method) CallConvention Convention = pWrapper->GetCallConvention(); jit_uint32_t ParamCount = pWrapper->GetParamCount(); const PassInfo *pRet = pWrapper->GetReturnInfo(); + bool hasParams = (ParamCount || Convention == CallConv_ThisCall); writer.outbase = NULL; writer.outptr = NULL; jit_rewind: /* Write function prologue */ - Write_Execution_Prologue(jit, (pRet) ? false : true, (ParamCount || Convention == CallConv_ThisCall)); + Write_Execution_Prologue(jit, (pRet) ? false : true, hasParams); /* Write parameter push code */ for (jit_int32_t i=ParamCount-1; i>=0; i--) @@ -593,7 +594,7 @@ skip_retbuffer: } /* Write Function Epilogue */ - Write_Function_Epilogue(jit, (pRet) ? false : true, (ParamCount) ? true : false); + Write_Function_Epilogue(jit, (pRet) ? false : true, hasParams); if (writer.outbase == NULL) {