diff options
Diffstat (limited to 'src/lj_vm.h')
-rw-r--r-- | src/lj_vm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_vm.h b/src/lj_vm.h index f50614bb..095f284a 100644 --- a/src/lj_vm.h +++ b/src/lj_vm.h | |||
@@ -46,6 +46,7 @@ LJ_ASMF void lj_vm_powi(void); | |||
46 | LJ_ASMF void lj_gate_lf(void); | 46 | LJ_ASMF void lj_gate_lf(void); |
47 | LJ_ASMF void lj_gate_lv(void); | 47 | LJ_ASMF void lj_gate_lv(void); |
48 | LJ_ASMF void lj_gate_c(void); | 48 | LJ_ASMF void lj_gate_c(void); |
49 | LJ_ASMF void lj_gate_cwrap(void); | ||
49 | 50 | ||
50 | /* Continuations for metamethods. */ | 51 | /* Continuations for metamethods. */ |
51 | LJ_ASMF void lj_cont_cat(void); /* Continue with concatenation. */ | 52 | LJ_ASMF void lj_cont_cat(void); /* Continue with concatenation. */ |
@@ -55,12 +56,11 @@ LJ_ASMF void lj_cont_condt(void); /* Branch if result is true. */ | |||
55 | LJ_ASMF void lj_cont_condf(void); /* Branch if result is false. */ | 56 | LJ_ASMF void lj_cont_condf(void); /* Branch if result is false. */ |
56 | 57 | ||
57 | /* Start of the ASM code. */ | 58 | /* Start of the ASM code. */ |
58 | LJ_ASMF void lj_vm_asm_begin(void); | 59 | LJ_ASMF char lj_vm_asm_begin[]; |
59 | 60 | ||
60 | /* Opcode handler offsets, relative to lj_vm_asm_begin. */ | 61 | /* Opcode handler offsets, relative to lj_vm_asm_begin. */ |
61 | LJ_ASMF const uint16_t lj_vm_op_ofs[]; | 62 | LJ_ASMF const uint16_t lj_vm_op_ofs[]; |
62 | 63 | ||
63 | #define makeasmfunc(ofs) \ | 64 | #define makeasmfunc(ofs) ((ASMFunction)(lj_vm_asm_begin + (ofs))) |
64 | ((ASMFunction)((char *)lj_vm_asm_begin + (ofs))) | ||
65 | 65 | ||
66 | #endif | 66 | #endif |