diff options
author | Mike Pall <mike> | 2010-02-13 04:51:56 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-02-13 04:51:56 +0100 |
commit | c93138b59e8f28b3d412cd7ec0c6631fd27e3e1b (patch) | |
tree | 8c0ffe2086ab0b032ed8e9f92ae6fb9d4d040d66 /src/lj_bc.c | |
parent | 4f8d7be8ea8a103f4d9046188d6005740b74f3d4 (diff) | |
download | luajit-c93138b59e8f28b3d412cd7ec0c6631fd27e3e1b.tar.gz luajit-c93138b59e8f28b3d412cd7ec0c6631fd27e3e1b.tar.bz2 luajit-c93138b59e8f28b3d412cd7ec0c6631fd27e3e1b.zip |
Major redesign of function call handling.
Drop call gates. Use function headers, dispatched like bytecodes.
Emit BC_FUNCF/BC_FUNCV bytecode at PC 0 for all Lua functions.
C functions and ASM fast functions get extra bytecodes.
Modify internal calling convention: new base in BASE (formerly in RA).
Can now use better C function wrapper semantics (dynamic on/off).
Prerequisite for call hooks with zero-overhead if disabled.
Prerequisite for compiling recursive calls.
Prerequisite for efficient 32/64 bit prototype guards.
Diffstat (limited to 'src/lj_bc.c')
-rw-r--r-- | src/lj_bc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lj_bc.c b/src/lj_bc.c index 58e97b30..2519807c 100644 --- a/src/lj_bc.c +++ b/src/lj_bc.c | |||
@@ -9,11 +9,6 @@ | |||
9 | #include "lj_obj.h" | 9 | #include "lj_obj.h" |
10 | #include "lj_bc.h" | 10 | #include "lj_bc.h" |
11 | 11 | ||
12 | /* Bytecode instruction modes. */ | 12 | /* Bytecode offsets and bytecode instruction modes. */ |
13 | LJ_DATADEF const uint16_t lj_bc_mode[BC__MAX+1] = { | ||
14 | BCDEF(BCMODE) | ||
15 | 0 | ||
16 | }; | ||
17 | |||
18 | #include "lj_bcdef.h" | 13 | #include "lj_bcdef.h" |
19 | 14 | ||