diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-12 16:13:50 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-12 16:13:50 -0300 |
| commit | 1fb4d539254b67e7e35ed698250c66d1edff0e08 (patch) | |
| tree | 8f48b7ca736a7fb02834bcfac1415cd43307f529 /lcode.h | |
| parent | f6aab3ec1f111cd8d968bdcb7ca800e93b819d24 (diff) | |
| download | lua-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -55,6 +55,7 @@ LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); | |||
| 55 | LUAI_FUNC int luaK_codeAsBx (FuncState *fs, OpCode o, int A, int Bx); | 55 | LUAI_FUNC int luaK_codeAsBx (FuncState *fs, OpCode o, int A, int Bx); |
| 56 | LUAI_FUNC int luaK_codeABCk (FuncState *fs, OpCode o, int A, | 56 | LUAI_FUNC int luaK_codeABCk (FuncState *fs, OpCode o, int A, |
| 57 | int B, int C, int k); | 57 | int B, int C, int k); |
| 58 | LUAI_FUNC int luaK_codeextraarg (FuncState *fs, int a); | ||
| 58 | LUAI_FUNC int luaK_isKint (expdesc *e); | 59 | LUAI_FUNC int luaK_isKint (expdesc *e); |
| 59 | LUAI_FUNC int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v); | 60 | LUAI_FUNC int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v); |
| 60 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); | 61 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); |
