- added string PARAM and RET

This commit is contained in:
Jonathan Russell 2018-09-14 18:20:31 +01:00
commit 11fbd9a0a4
7 changed files with 64 additions and 40 deletions

View file

@ -169,8 +169,6 @@ bool JitCompiler::CanJit(VMScriptFunction *sfunc)
if (B != REGT_NIL)
{
int regtype = B;
if ((regtype & REGT_TYPE) == REGT_STRING)
return false;
}
}
else if (sfunc->Code[i].op == OP_CAST)
@ -198,10 +196,6 @@ bool JitCompiler::CanJit(VMScriptFunction *sfunc)
switch (B)
{
case REGT_STRING:
case REGT_STRING | REGT_ADDROF:
case REGT_STRING | REGT_KONST:
return false;
default:
break;
}
@ -210,9 +204,6 @@ bool JitCompiler::CanJit(VMScriptFunction *sfunc)
{
if (!!(B & REGT_MULTIREG3) || !!(B & REGT_MULTIREG2))
return false;
if ((B & REGT_TYPE) == REGT_STRING)
return false;
}
}
return true;