From dd547c55c85ba48f481836ba76ecdfe69960bcd0 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 1 Feb 2011 16:03:10 -0200 Subject: new scheme to close upvalues in 'break'; jump instructions may do the close, avoiding the need for a OP_CLOSE instruction --- lcode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lcode.h') diff --git a/lcode.h b/lcode.h index fa1a7340..0c19f156 100644 --- a/lcode.h +++ b/lcode.h @@ -1,5 +1,5 @@ /* -** $Id: lcode.h,v 1.54 2010/04/17 12:46:32 roberto Exp roberto $ +** $Id: lcode.h,v 1.55 2010/07/02 20:42:40 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -71,6 +71,7 @@ LUAI_FUNC int luaK_jump (FuncState *fs); LUAI_FUNC void luaK_ret (FuncState *fs, int first, int nret); LUAI_FUNC void luaK_patchlist (FuncState *fs, int list, int target); LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); +LUAI_FUNC void luaK_patchclose (FuncState *fs, int list, int level); LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); LUAI_FUNC int luaK_getlabel (FuncState *fs); LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line); -- cgit v1.2.3-55-g6feb