diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_jit.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h index c0b1c41e..cfb04aa7 100644 --- a/src/lj_jit.h +++ b/src/lj_jit.h | |||
@@ -14,18 +14,15 @@ | |||
14 | 14 | ||
15 | /* CPU-specific JIT engine flags. */ | 15 | /* CPU-specific JIT engine flags. */ |
16 | #if LJ_TARGET_X86ORX64 | 16 | #if LJ_TARGET_X86ORX64 |
17 | #define JIT_F_CMOV 0x00000010 | 17 | #define JIT_F_SSE2 0x00000010 |
18 | #define JIT_F_SSE2 0x00000020 | 18 | #define JIT_F_SSE3 0x00000020 |
19 | #define JIT_F_SSE3 0x00000040 | 19 | #define JIT_F_SSE4_1 0x00000040 |
20 | #define JIT_F_SSE4_1 0x00000080 | 20 | #define JIT_F_PREFER_IMUL 0x00000080 |
21 | #define JIT_F_P4 0x00000100 | 21 | #define JIT_F_LEA_AGU 0x00000100 |
22 | #define JIT_F_PREFER_IMUL 0x00000200 | ||
23 | #define JIT_F_SPLIT_XMM 0x00000400 | ||
24 | #define JIT_F_LEA_AGU 0x00000800 | ||
25 | 22 | ||
26 | /* Names for the CPU-specific flags. Must match the order above. */ | 23 | /* Names for the CPU-specific flags. Must match the order above. */ |
27 | #define JIT_F_CPU_FIRST JIT_F_CMOV | 24 | #define JIT_F_CPU_FIRST JIT_F_SSE2 |
28 | #define JIT_F_CPUSTRING "\4CMOV\4SSE2\4SSE3\6SSE4.1\2P4\3AMD\2K8\4ATOM" | 25 | #define JIT_F_CPUSTRING "\4SSE2\4SSE3\6SSE4.1\3AMD\4ATOM" |
29 | #elif LJ_TARGET_ARM | 26 | #elif LJ_TARGET_ARM |
30 | #define JIT_F_ARMV6_ 0x00000010 | 27 | #define JIT_F_ARMV6_ 0x00000010 |
31 | #define JIT_F_ARMV6T2_ 0x00000020 | 28 | #define JIT_F_ARMV6T2_ 0x00000020 |
@@ -399,6 +396,12 @@ typedef struct jit_State { | |||
399 | size_t szallmcarea; /* Total size of all allocated mcode areas. */ | 396 | size_t szallmcarea; /* Total size of all allocated mcode areas. */ |
400 | 397 | ||
401 | TValue errinfo; /* Additional info element for trace errors. */ | 398 | TValue errinfo; /* Additional info element for trace errors. */ |
399 | |||
400 | #if LJ_HASPROFILE | ||
401 | GCproto *prev_pt; /* Previous prototype. */ | ||
402 | BCLine prev_line; /* Previous line. */ | ||
403 | int prof_mode; /* Profiling mode: 0, 'f', 'l'. */ | ||
404 | #endif | ||
402 | } | 405 | } |
403 | #if LJ_TARGET_ARM | 406 | #if LJ_TARGET_ARM |
404 | LJ_ALIGN(16) /* For DISPATCH-relative addresses in assembler part. */ | 407 | LJ_ALIGN(16) /* For DISPATCH-relative addresses in assembler part. */ |