From c93138b59e8f28b3d412cd7ec0c6631fd27e3e1b Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sat, 13 Feb 2010 04:51:56 +0100 Subject: 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. --- src/lib_string.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib_string.c') 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) lj_lib_checkstr(L, 2); L->top = L->base+3; (L->top-1)->u64 = 0; - lua_pushcclosure(L, lj_cf_string_gmatch_aux, 3); - funcV(L->top-1)->c.ffid = FF_string_gmatch_aux; + lj_lib_pushcc(L, lj_cf_string_gmatch_aux, FF_string_gmatch_aux, 3); return 1; } -- cgit v1.2.3-55-g6feb