- added OP_MOVES, OP_CONCAT, OP_LENS, OP_CMPS

This commit is contained in:
Jonathan Russell 2018-09-13 20:31:06 +01:00
commit 0b6c514067
5 changed files with 81 additions and 10 deletions

View file

@ -154,14 +154,10 @@ bool JitCompiler::CanJit(VMScriptFunction *sfunc)
case OP_LFP:
case OP_LCS_R:
case OP_SS_R:
case OP_MOVES:
case OP_IJMP:
case OP_CALL: // this one is implemented but crashes currently
case OP_TAIL:
case OP_TAIL_K:
case OP_CONCAT:
case OP_LENS:
case OP_CMPS:
return false;
}
@ -417,6 +413,20 @@ asmjit::X86Xmm JitCompiler::CheckRegF(int r0, int r1, int r2, int r3)
}
}
asmjit::X86Gp JitCompiler::CheckRegS(int r0, int r1)
{
if (r0 != r1)
{
return regS[r0];
}
else
{
auto copy = cc.newIntPtr();
cc.mov(copy, regS[r0]);
return copy;
}
}
asmjit::X86Gp JitCompiler::CheckRegA(int r0, int r1)
{
if (r0 != r1)