- added OP_MOVES, OP_CONCAT, OP_LENS, OP_CMPS
This commit is contained in:
parent
c359601737
commit
0b6c514067
5 changed files with 81 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue