diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-13 10:07:48 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-13 10:07:48 -0300 |
| commit | b55fded18c270412e127259a5f28c785620dbf1a (patch) | |
| tree | f113a11efa905c272d679e93e66ce0cbc1587fb0 /lcode.h | |
| parent | 2dadc8182282afa4b1fe6e6287704a54cd8e5123 (diff) | |
| download | lua-b55fded18c270412e127259a5f28c785620dbf1a.tar.gz lua-b55fded18c270412e127259a5f28c785620dbf1a.tar.bz2 lua-b55fded18c270412e127259a5f28c785620dbf1a.zip | |
details about jump optimization
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.34 2002/05/10 17:02:32 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.35 2002/05/10 19:22:11 roberto Exp $ |
| 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,6 +44,7 @@ typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_NOUNOPR } UnOpr; | |||
| 44 | int luaK_code (FuncState *fs, Instruction i, int line); | 44 | int luaK_code (FuncState *fs, Instruction i, int line); |
| 45 | int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); | 45 | int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
| 46 | int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); | 46 | int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); |
| 47 | void luaK_fixline (FuncState *fs, int line); | ||
| 47 | void luaK_nil (FuncState *fs, int from, int n); | 48 | void luaK_nil (FuncState *fs, int from, int n); |
| 48 | void luaK_reserveregs (FuncState *fs, int n); | 49 | void luaK_reserveregs (FuncState *fs, int n); |
| 49 | int luaK_stringK (FuncState *fs, TString *s); | 50 | int luaK_stringK (FuncState *fs, TString *s); |
