diff options
| author | Mike Pall <mike> | 2009-12-08 19:49:20 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2009-12-08 19:49:20 +0100 |
| commit | 1d1fed48a002dfc0919135911057ebc255a53e0a (patch) | |
| tree | c5c6643908374bb8f02f4c7691332d32f6645986 /src/lj_vm.h | |
| parent | 55b16959717084884fd4a0cbae6d19e3786c20c7 (diff) | |
| download | luajit-2.0.0-beta2.tar.gz luajit-2.0.0-beta2.tar.bz2 luajit-2.0.0-beta2.zip | |
RELEASE LuaJIT-2.0.0-beta2v2.0.0-beta2
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 |
