diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-20 16:53:55 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-20 16:53:55 -0300 |
commit | 6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d (patch) | |
tree | 0cf827d0f9d328be0c3aedbb7def8bc964905415 /lcode.h | |
parent | c354211744e80c14314b3a363e7d57f5751be835 (diff) | |
download | lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.tar.gz lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.tar.bz2 lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.zip |
new opcode LOADI (for loading immediate integers)
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.63 2013/12/30 20:47:58 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.64 2016/01/05 16:22:37 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 | */ |
@@ -51,13 +51,12 @@ typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; | |||
51 | 51 | ||
52 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); | 52 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
53 | LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); | 53 | LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); |
54 | LUAI_FUNC int luaK_codek (FuncState *fs, int reg, int k); | ||
55 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); | 54 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); |
56 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); | 55 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); |
57 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); | 56 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); |
58 | LUAI_FUNC void luaK_checkstack (FuncState *fs, int n); | 57 | LUAI_FUNC void luaK_checkstack (FuncState *fs, int n); |
59 | LUAI_FUNC int luaK_stringK (FuncState *fs, TString *s); | 58 | LUAI_FUNC int luaK_stringK (FuncState *fs, TString *s); |
60 | LUAI_FUNC int luaK_intK (FuncState *fs, lua_Integer n); | 59 | LUAI_FUNC void luaK_int (FuncState *fs, int reg, lua_Integer n); |
61 | LUAI_FUNC void luaK_dischargevars (FuncState *fs, expdesc *e); | 60 | LUAI_FUNC void luaK_dischargevars (FuncState *fs, expdesc *e); |
62 | LUAI_FUNC int luaK_exp2anyreg (FuncState *fs, expdesc *e); | 61 | LUAI_FUNC int luaK_exp2anyreg (FuncState *fs, expdesc *e); |
63 | LUAI_FUNC void luaK_exp2anyregup (FuncState *fs, expdesc *e); | 62 | LUAI_FUNC void luaK_exp2anyregup (FuncState *fs, expdesc *e); |