mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
- switch from ASMJIT_ARCH_X64 to ASMJIT_ARCH_64BIT when checking if we need to use 64-bit pointers
This commit is contained in:
parent
e0f0511d29
commit
f90019561d
3 changed files with 5 additions and 5 deletions
|
@ -270,7 +270,7 @@ void JitCompiler::EmitThrowException(EVMAbortException reason)
|
|||
|
||||
// Update JitExceptionInfo struct
|
||||
cc.mov(x86::dword_ptr(exceptInfo, 0 * 4), (int32_t)reason);
|
||||
#ifdef ASMJIT_ARCH_X64
|
||||
#ifdef ASMJIT_ARCH_64BIT
|
||||
cc.mov(x86::qword_ptr(exceptInfo, 4 * 4), ToMemAddress(pc));
|
||||
#else
|
||||
cc.mov(x86::dword_ptr(exceptInfo, 4 * 4), ToMemAddress(pc));
|
||||
|
@ -289,7 +289,7 @@ void JitCompiler::EmitThrowException(EVMAbortException reason, asmjit::X86Gp arg
|
|||
// Update JitExceptionInfo struct
|
||||
cc.mov(x86::dword_ptr(exceptInfo, 0 * 4), (int32_t)reason);
|
||||
cc.mov(x86::dword_ptr(exceptInfo, 1 * 4), arg1);
|
||||
#ifdef ASMJIT_ARCH_X64
|
||||
#ifdef ASMJIT_ARCH_64BIT
|
||||
cc.mov(x86::qword_ptr(exceptInfo, 4 * 4), ToMemAddress(pc));
|
||||
#else
|
||||
cc.mov(x86::dword_ptr(exceptInfo, 4 * 4), ToMemAddress(pc));
|
||||
|
|
|
@ -199,7 +199,7 @@ void JitCompiler::EmitRET()
|
|||
break;
|
||||
}
|
||||
case REGT_POINTER:
|
||||
#ifdef ASMJIT_ARCH_X64
|
||||
#ifdef ASMJIT_ARCH_64BIT
|
||||
if (regtype & REGT_KONST)
|
||||
cc.mov(x86::qword_ptr(location), ToMemAddress(konsta[regnum].v));
|
||||
else
|
||||
|
|
|
@ -52,7 +52,7 @@ void JitCompiler::EmitLKS_R()
|
|||
auto base = cc.newIntPtr();
|
||||
cc.mov(base, ToMemAddress(konsts + C));
|
||||
auto ptr = cc.newIntPtr();
|
||||
#ifdef ASMJIT_ARCH_X64
|
||||
#ifdef ASMJIT_ARCH_64BIT
|
||||
static_assert(sizeof(FString) == 8, "sizeof(FString) needs to be 8");
|
||||
cc.lea(ptr, asmjit::x86::ptr(base, regD[B], 3));
|
||||
#else
|
||||
|
@ -68,7 +68,7 @@ void JitCompiler::EmitLKP_R()
|
|||
{
|
||||
auto base = cc.newIntPtr();
|
||||
cc.mov(base, ToMemAddress(konsta + C));
|
||||
#ifdef ASMJIT_ARCH_X64
|
||||
#ifdef ASMJIT_ARCH_64BIT
|
||||
static_assert(sizeof(FVoidObj) == 8, "sizeof(FVoidObj) needs to be 8");
|
||||
cc.mov(regA[A], asmjit::x86::ptr(base, regD[B], 3));
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue