mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 22:33:17 +00:00
- treat REGT_STRING | REGT_ADDROF just like REGT_STRING for direct native functions.
Both pass a reference so there's no need to treat them differently.
This commit is contained in:
parent
062528e0e2
commit
de9805d5c7
1 changed files with 1 additions and 1 deletions
|
@ -356,6 +356,7 @@ void JitCompiler::EmitNativeCall(VMNativeFunction *target)
|
||||||
case REGT_INT | REGT_KONST:
|
case REGT_INT | REGT_KONST:
|
||||||
call->setArg(slot, imm(konstd[bc]));
|
call->setArg(slot, imm(konstd[bc]));
|
||||||
break;
|
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:
|
case REGT_STRING:
|
||||||
call->setArg(slot, regS[bc]);
|
call->setArg(slot, regS[bc]);
|
||||||
break;
|
break;
|
||||||
|
@ -393,7 +394,6 @@ void JitCompiler::EmitNativeCall(VMNativeFunction *target)
|
||||||
call->setArg(slot, tmp2);
|
call->setArg(slot, tmp2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REGT_STRING | REGT_ADDROF:
|
|
||||||
case REGT_INT | REGT_ADDROF:
|
case REGT_INT | REGT_ADDROF:
|
||||||
case REGT_POINTER | REGT_ADDROF:
|
case REGT_POINTER | REGT_ADDROF:
|
||||||
case REGT_FLOAT | REGT_ADDROF:
|
case REGT_FLOAT | REGT_ADDROF:
|
||||||
|
|
Loading…
Reference in a new issue