summaryrefslogtreecommitdiff
path: root/src/lj_vm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_vm.h')
-rw-r--r--src/lj_vm.h6
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);
46LJ_ASMF void lj_gate_lf(void); 46LJ_ASMF void lj_gate_lf(void);
47LJ_ASMF void lj_gate_lv(void); 47LJ_ASMF void lj_gate_lv(void);
48LJ_ASMF void lj_gate_c(void); 48LJ_ASMF void lj_gate_c(void);
49LJ_ASMF void lj_gate_cwrap(void);
49 50
50/* Continuations for metamethods. */ 51/* Continuations for metamethods. */
51LJ_ASMF void lj_cont_cat(void); /* Continue with concatenation. */ 52LJ_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. */
55LJ_ASMF void lj_cont_condf(void); /* Branch if result is false. */ 56LJ_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. */
58LJ_ASMF void lj_vm_asm_begin(void); 59LJ_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. */
61LJ_ASMF const uint16_t lj_vm_op_ofs[]; 62LJ_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