mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- fixed missing null checks in JIT generated code
https://forum.zdoom.org/viewtopic.php?t=64307
This commit is contained in:
parent
dd7ec1fe44
commit
3767a9aec1
1 changed files with 4 additions and 0 deletions
|
@ -89,6 +89,7 @@ void JitCompiler::EmitSS_R()
|
|||
|
||||
void JitCompiler::EmitSO()
|
||||
{
|
||||
EmitNullPointerThrow(A, X_WRITE_NIL);
|
||||
cc.mov(asmjit::x86::ptr(regA[A], konstd[C]), regA[B]);
|
||||
|
||||
typedef void(*FuncPtr)(DObject*);
|
||||
|
@ -98,6 +99,7 @@ void JitCompiler::EmitSO()
|
|||
|
||||
void JitCompiler::EmitSO_R()
|
||||
{
|
||||
EmitNullPointerThrow(A, X_WRITE_NIL);
|
||||
cc.mov(asmjit::x86::ptr(regA[A], regD[C]), regA[B]);
|
||||
|
||||
typedef void(*FuncPtr)(DObject*);
|
||||
|
@ -107,11 +109,13 @@ void JitCompiler::EmitSO_R()
|
|||
|
||||
void JitCompiler::EmitSP()
|
||||
{
|
||||
EmitNullPointerThrow(A, X_WRITE_NIL);
|
||||
cc.mov(asmjit::x86::ptr(regA[A], konstd[C]), regA[B]);
|
||||
}
|
||||
|
||||
void JitCompiler::EmitSP_R()
|
||||
{
|
||||
EmitNullPointerThrow(A, X_WRITE_NIL);
|
||||
cc.mov(asmjit::x86::ptr(regA[A], regD[C]), regA[B]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue