Permalink
Browse files

- treat REGT_STRING | REGT_ADDROF just like REGT_STRING for direct na…

…tive functions.

Both pass a reference so there's no need to treat them differently.
  • Loading branch information...
coelckers committed Dec 4, 2018
1 parent 062528e commit de9805d5c7481f9a94fbaf4aeafa7f1590198910
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripting/vm/jit_call.cpp
@@ -356,6 +356,7 @@ void JitCompiler::EmitNativeCall(VMNativeFunction *target)
case REGT_INT | REGT_KONST:
call->setArg(slot, imm(konstd[bc]));
break;
case REGT_STRING | REGT_ADDROF: // AddrOf string is essentially the same - a reference to the register, just not constant on the receiving side.
case REGT_STRING:
call->setArg(slot, regS[bc]);
break;
@@ -393,7 +394,6 @@ void JitCompiler::EmitNativeCall(VMNativeFunction *target)
call->setArg(slot, tmp2);
break;
case REGT_STRING | REGT_ADDROF:
case REGT_INT | REGT_ADDROF:
case REGT_POINTER | REGT_ADDROF:
case REGT_FLOAT | REGT_ADDROF:

0 comments on commit de9805d

Please sign in to comment.