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_gdbjit.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_gdbjit.c')
-rw-r--r-- | src/lj_gdbjit.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lj_gdbjit.c b/src/lj_gdbjit.c index 3a4d5da1..f71b3081 100644 --- a/src/lj_gdbjit.c +++ b/src/lj_gdbjit.c | |||
@@ -705,10 +705,7 @@ void lj_gdbjit_addtrace(jit_State *J, Trace *T, TraceNo traceno) | |||
705 | ctx.szmcode = T->szmcode; | 705 | ctx.szmcode = T->szmcode; |
706 | ctx.spadjp = CFRAME_SIZE + (MSize)(parent ? J->trace[parent]->spadjust : 0); | 706 | ctx.spadjp = CFRAME_SIZE + (MSize)(parent ? J->trace[parent]->spadjust : 0); |
707 | ctx.spadj = CFRAME_SIZE + T->spadjust; | 707 | ctx.spadj = CFRAME_SIZE + T->spadjust; |
708 | if (startpc >= proto_bc(pt)) | 708 | ctx.lineno = proto_line(pt, proto_bcpos(pt, startpc)); |
709 | ctx.lineno = proto_line(pt,proto_bcpos(pt,startpc)); | ||
710 | else | ||
711 | ctx.lineno = pt->linedefined; | ||
712 | ctx.filename = strdata(proto_chunkname(pt)); | 709 | ctx.filename = strdata(proto_chunkname(pt)); |
713 | if (*ctx.filename == '@' || *ctx.filename == '=') | 710 | if (*ctx.filename == '@' || *ctx.filename == '=') |
714 | ctx.filename++; | 711 | ctx.filename++; |