diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-09-23 17:33:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-09-23 17:33:05 -0300 |
commit | fcc46467fa92c8e9951e63baf2c3e1b22bf20a1f (patch) | |
tree | 54e6ab8b2b6d720911251e6863ddca1e54a75cd0 /lcode.h | |
parent | f8e354e2404cbd0a91b4299598d4de9757e73fd7 (diff) | |
download | lua-fcc46467fa92c8e9951e63baf2c3e1b22bf20a1f.tar.gz lua-fcc46467fa92c8e9951e63baf2c3e1b22bf20a1f.tar.bz2 lua-fcc46467fa92c8e9951e63baf2c3e1b22bf20a1f.zip |
limit of constants per function changed to 2^26 using extra arguments
to opcodes LOADK, GETGLOBAL, and SETGLOBAL
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.50 2009/06/10 16:52:03 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.51 2009/06/18 16:35:05 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 | */ |
@@ -44,9 +44,11 @@ typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; | |||
44 | 44 | ||
45 | #define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t) | 45 | #define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t) |
46 | 46 | ||
47 | LUAI_FUNC void luaK_codek (FuncState *fs, int reg, int k); | 47 | #define luaK_codek(fs,reg,k) luaK_codeABxX(fs, OP_LOADK, reg, k) |
48 | |||
48 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); | 49 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
49 | LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); | 50 | LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); |
51 | LUAI_FUNC int luaK_codeABxX (FuncState *fs, OpCode o, int reg, int k); | ||
50 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); | 52 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); |
51 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); | 53 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); |
52 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); | 54 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); |