Oh, I forgot about this

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40750
This commit is contained in:
Scott Ehlert 2007-05-06 06:44:18 +00:00
parent 7013072236
commit 16fa9e0fa6

View File

@ -503,13 +503,14 @@ void JIT_Compile(CallWrapper *pWrapper, FuncAddrMethod method)
CallConvention Convention = pWrapper->GetCallConvention(); CallConvention Convention = pWrapper->GetCallConvention();
jit_uint32_t ParamCount = pWrapper->GetParamCount(); jit_uint32_t ParamCount = pWrapper->GetParamCount();
const PassInfo *pRet = pWrapper->GetReturnInfo(); const PassInfo *pRet = pWrapper->GetReturnInfo();
bool hasParams = (ParamCount || Convention == CallConv_ThisCall);
writer.outbase = NULL; writer.outbase = NULL;
writer.outptr = NULL; writer.outptr = NULL;
jit_rewind: jit_rewind:
/* Write function prologue */ /* 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 */ /* Write parameter push code */
for (jit_int32_t i=ParamCount-1; i>=0; i--) for (jit_int32_t i=ParamCount-1; i>=0; i--)
@ -593,7 +594,7 @@ skip_retbuffer:
} }
/* Write Function Epilogue */ /* 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) if (writer.outbase == NULL)
{ {