summaryrefslogtreecommitdiff
path: root/src/lib_string.c
diff options
context:
space:
mode:
authorMike Pall <mike>2010-02-13 04:51:56 +0100
committerMike Pall <mike>2010-02-13 04:51:56 +0100
commitc93138b59e8f28b3d412cd7ec0c6631fd27e3e1b (patch)
tree8c0ffe2086ab0b032ed8e9f92ae6fb9d4d040d66 /src/lib_string.c
parent4f8d7be8ea8a103f4d9046188d6005740b74f3d4 (diff)
downloadluajit-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/lib_string.c')
-rw-r--r--src/lib_string.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib_string.c b/src/lib_string.c
index b6a4864b..ab353c20 100644
--- a/src/lib_string.c
+++ b/src/lib_string.c
@@ -536,8 +536,7 @@ LJLIB_CF(string_gmatch)
536 lj_lib_checkstr(L, 2); 536 lj_lib_checkstr(L, 2);
537 L->top = L->base+3; 537 L->top = L->base+3;
538 (L->top-1)->u64 = 0; 538 (L->top-1)->u64 = 0;
539 lua_pushcclosure(L, lj_cf_string_gmatch_aux, 3); 539 lj_lib_pushcc(L, lj_cf_string_gmatch_aux, FF_string_gmatch_aux, 3);
540 funcV(L->top-1)->c.ffid = FF_string_gmatch_aux;
541 return 1; 540 return 1;
542} 541}
543 542