aboutsummaryrefslogtreecommitdiff
path: root/lcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-12 16:13:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-12 16:13:50 -0300
commit1fb4d539254b67e7e35ed698250c66d1edff0e08 (patch)
tree8f48b7ca736a7fb02834bcfac1415cd43307f529 /lcode.h
parentf6aab3ec1f111cd8d968bdcb7ca800e93b819d24 (diff)
downloadlua-1fb4d539254b67e7e35ed698250c66d1edff0e08.tar.gz
lua-1fb4d539254b67e7e35ed698250c66d1edff0e08.tar.bz2
lua-1fb4d539254b67e7e35ed698250c66d1edff0e08.zip
OP_NEWTABLE keeps exact size of arrays
OP_NEWTABLE is followed by an OP_EXTRAARG, so that it can keep the exact size of the array part of the table to be created. (Functions 'luaO_int2fb'/'luaO_fb2int' were removed.)
Diffstat (limited to 'lcode.h')
-rw-r--r--lcode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lcode.h b/lcode.h
index a15b6875..a924722c 100644
--- a/lcode.h
+++ b/lcode.h
@@ -55,6 +55,7 @@ LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx);
55LUAI_FUNC int luaK_codeAsBx (FuncState *fs, OpCode o, int A, int Bx); 55LUAI_FUNC int luaK_codeAsBx (FuncState *fs, OpCode o, int A, int Bx);
56LUAI_FUNC int luaK_codeABCk (FuncState *fs, OpCode o, int A, 56LUAI_FUNC int luaK_codeABCk (FuncState *fs, OpCode o, int A,
57 int B, int C, int k); 57 int B, int C, int k);
58LUAI_FUNC int luaK_codeextraarg (FuncState *fs, int a);
58LUAI_FUNC int luaK_isKint (expdesc *e); 59LUAI_FUNC int luaK_isKint (expdesc *e);
59LUAI_FUNC int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v); 60LUAI_FUNC int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v);
60LUAI_FUNC void luaK_fixline (FuncState *fs, int line); 61LUAI_FUNC void luaK_fixline (FuncState *fs, int line);