diff options
author | Mike Pall <mike> | 2015-01-03 15:23:58 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2015-01-03 15:23:58 +0100 |
commit | cb481ddc8f9d92913ba07d998f4274bbf9711077 (patch) | |
tree | 852ffb4dd7c3cfdcf5c1ca6ae1531e5f9436d064 /src/lj_arch.h | |
parent | 054e6abe37450344e20b373ec326055071029e9b (diff) | |
download | luajit-cb481ddc8f9d92913ba07d998f4274bbf9711077.tar.gz luajit-cb481ddc8f9d92913ba07d998f4274bbf9711077.tar.bz2 luajit-cb481ddc8f9d92913ba07d998f4274bbf9711077.zip |
Add LJ_GC64 mode: 64 bit GC object references.
Actually NaN tagging with 47 bit pointers and 13+4 bit tags.
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r-- | src/lj_arch.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h index 8f3796fc..18555b41 100644 --- a/src/lj_arch.h +++ b/src/lj_arch.h | |||
@@ -365,11 +365,22 @@ | |||
365 | #endif | 365 | #endif |
366 | #endif | 366 | #endif |
367 | 367 | ||
368 | /* 64 bit GC references. */ | ||
369 | #if LJ_TARGET_GC64 | ||
370 | #define LJ_GC64 1 | ||
371 | #else | ||
372 | #define LJ_GC64 0 | ||
373 | #endif | ||
374 | |||
368 | /* 2-slot frame info. */ | 375 | /* 2-slot frame info. */ |
376 | #if LJ_GC64 | ||
377 | #define LJ_FR2 1 | ||
378 | #else | ||
369 | #define LJ_FR2 0 | 379 | #define LJ_FR2 0 |
380 | #endif | ||
370 | 381 | ||
371 | /* Disable or enable the JIT compiler. */ | 382 | /* Disable or enable the JIT compiler. */ |
372 | #if defined(LUAJIT_DISABLE_JIT) || defined(LJ_ARCH_NOJIT) || defined(LJ_OS_NOJIT) || LJ_FR2 | 383 | #if defined(LUAJIT_DISABLE_JIT) || defined(LJ_ARCH_NOJIT) || defined(LJ_OS_NOJIT) || LJ_FR2 || LJ_GC64 |
373 | #define LJ_HASJIT 0 | 384 | #define LJ_HASJIT 0 |
374 | #else | 385 | #else |
375 | #define LJ_HASJIT 1 | 386 | #define LJ_HASJIT 1 |