diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-02-01 16:03:10 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-02-01 16:03:10 -0200 |
commit | dd547c55c85ba48f481836ba76ecdfe69960bcd0 (patch) | |
tree | d75d864ae35fc5bafacf3c206eaa20885b03a3d1 /lcode.h | |
parent | f6bd8b1147d58c35e73225b4adc5499c11d2bf0f (diff) | |
download | lua-dd547c55c85ba48f481836ba76ecdfe69960bcd0.tar.gz lua-dd547c55c85ba48f481836ba76ecdfe69960bcd0.tar.bz2 lua-dd547c55c85ba48f481836ba76ecdfe69960bcd0.zip |
new scheme to close upvalues in 'break'; jump instructions may
do the close, avoiding the need for a OP_CLOSE instruction
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.54 2010/04/17 12:46:32 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.55 2010/07/02 20:42:40 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -71,6 +71,7 @@ LUAI_FUNC int luaK_jump (FuncState *fs); | |||
71 | LUAI_FUNC void luaK_ret (FuncState *fs, int first, int nret); | 71 | LUAI_FUNC void luaK_ret (FuncState *fs, int first, int nret); |
72 | LUAI_FUNC void luaK_patchlist (FuncState *fs, int list, int target); | 72 | LUAI_FUNC void luaK_patchlist (FuncState *fs, int list, int target); |
73 | LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); | 73 | LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); |
74 | LUAI_FUNC void luaK_patchclose (FuncState *fs, int list, int level); | ||
74 | LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); | 75 | LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); |
75 | LUAI_FUNC int luaK_getlabel (FuncState *fs); | 76 | LUAI_FUNC int luaK_getlabel (FuncState *fs); |
76 | LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line); | 77 | LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line); |