- construct our own runtime as the one provided by asmjit is too primitive

This commit is contained in:
Magnus Norddahl 2018-10-14 00:46:54 +02:00
commit cf9bae67a8
5 changed files with 136 additions and 61 deletions

View file

@ -79,12 +79,6 @@ VMScriptFunction::VMScriptFunction(FName name)
VMScriptFunction::~VMScriptFunction()
{
if (FunctionJitted)
{
JitCleanUp(this);
FunctionJitted = false;
}
if (Code != NULL)
{
if (KonstS != NULL)
@ -220,8 +214,6 @@ int VMScriptFunction::FirstScriptCall(VMFunction *func, VMValue *params, int num
sfunc->ScriptCall = JitCompile(sfunc);
if (!sfunc->ScriptCall)
sfunc->ScriptCall = VMExec;
else
sfunc->FunctionJitted = true;
return func->ScriptCall(func, params, numparams, ret, numret);
}