Skip to content

Commit

Permalink
- RUNTIME_FUNCTION only exists in 64-bit Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Oct 14, 2018
1 parent cd211da commit 1a2e5b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripting/vm/jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static void *AddJitFunction(asmjit::CodeHolder* code, asmjit::CCFunc *func)
if (codeSize == 0)
return nullptr;

#ifdef WIN32
#ifdef _WIN64
TArray<uint16_t> unwindInfo = CreateUnwindInfo(func);
size_t unwindInfoSize = unwindInfo.Size() * sizeof(uint16_t);
size_t functionTableSize = sizeof(RUNTIME_FUNCTION);
Expand All @@ -264,7 +264,7 @@ static void *AddJitFunction(asmjit::CodeHolder* code, asmjit::CCFunc *func)
unwindStart = (unwindStart + 15) / 16 * 16;
JitBlockPos -= codeSize - unwindStart;

#ifdef WIN32
#ifdef _WIN64
uint8_t *baseaddr = JitBlocks.Last();
uint8_t *startaddr = p;
uint8_t *endaddr = p + relocSize;
Expand Down

0 comments on commit 1a2e5b1

Please sign in to comment.