aboutsummaryrefslogtreecommitdiff
path: root/src/lj_vm.h
diff options
context:
space:
mode:
authorMike Pall <mike>2010-02-05 20:15:01 +0100
committerMike Pall <mike>2010-02-05 20:15:01 +0100
commitc4dadf1d67b5f91e7b80d92859eb85ae080f41f0 (patch)
tree2cd0b4a39eac8fad887b530c7727a10b39065078 /src/lj_vm.h
parenta0914c409b615af85eafb7e2787be628483ffde2 (diff)
downloadluajit-c4dadf1d67b5f91e7b80d92859eb85ae080f41f0.tar.gz
luajit-c4dadf1d67b5f91e7b80d92859eb85ae080f41f0.tar.bz2
luajit-c4dadf1d67b5f91e7b80d92859eb85ae080f41f0.zip
Move bytecode offsets from lj_vm.* to generated header.
Diffstat (limited to 'src/lj_vm.h')
-rw-r--r--src/lj_vm.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lj_vm.h b/src/lj_vm.h
index cf6a985f..b25f182a 100644
--- a/src/lj_vm.h
+++ b/src/lj_vm.h
@@ -61,9 +61,7 @@ LJ_ASMF void lj_cont_hook(void); /* Continue from hook yield. */
61/* Start of the ASM code. */ 61/* Start of the ASM code. */
62LJ_ASMF char lj_vm_asm_begin[]; 62LJ_ASMF char lj_vm_asm_begin[];
63 63
64/* Opcode handler offsets, relative to lj_vm_asm_begin. */ 64/* Bytecode offsets are relative to lj_vm_asm_begin. */
65LJ_ASMF const uint16_t lj_vm_op_ofs[];
66
67#define makeasmfunc(ofs) ((ASMFunction)(lj_vm_asm_begin + (ofs))) 65#define makeasmfunc(ofs) ((ASMFunction)(lj_vm_asm_begin + (ofs)))
68 66
69#endif 67#endif