diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-04 17:18:15 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-04 17:18:15 -0300 |
commit | 563de491be90601f23a735aede89ea9a3ef86ee9 (patch) | |
tree | c92677f388289ead55c8a8778493b0af7e41f159 /lcode.h | |
parent | 29e01934253adf5fbf43faff81d87d7470cef8ce (diff) | |
download | lua-563de491be90601f23a735aede89ea9a3ef86ee9.tar.gz lua-563de491be90601f23a735aede89ea9a3ef86ee9.tar.bz2 lua-563de491be90601f23a735aede89ea9a3ef86ee9.zip |
a better way to control optimizations.
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.2 2000/03/03 12:33:59 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.3 2000/03/03 18:53:17 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 | */ |
@@ -22,18 +22,20 @@ | |||
22 | void luaK_error (LexState *ls, const char *msg); | 22 | void luaK_error (LexState *ls, const char *msg); |
23 | int luaK_primitivecode (LexState *ls, Instruction i); | 23 | int luaK_primitivecode (LexState *ls, Instruction i); |
24 | int luaK_code (LexState *ls, Instruction i, int delta); | 24 | int luaK_code (LexState *ls, Instruction i, int delta); |
25 | void luaK_retcode (LexState *ls, int nlocals, listdesc *e); | 25 | void luaK_retcode (LexState *ls, int nlocals, int nexps); |
26 | void luaK_fixjump (LexState *ls, int pc, int dest); | 26 | void luaK_fixjump (LexState *ls, int pc, int dest); |
27 | int luaK_getlabel (LexState *ls); | ||
27 | void luaK_deltastack (LexState *ls, int delta); | 28 | void luaK_deltastack (LexState *ls, int delta); |
28 | void luaK_kstr (LexState *ls, int c); | 29 | void luaK_kstr (LexState *ls, int c); |
29 | void luaK_number (LexState *ls, real f); | 30 | void luaK_number (LexState *ls, real f); |
30 | void luaK_adjuststack (LexState *ls, int n); | 31 | void luaK_adjuststack (LexState *ls, int n); |
31 | int luaK_iscall (LexState *ls, int hasjumps); | 32 | int luaK_lastisopen (LexState *ls); |
32 | void luaK_setcallreturns (LexState *ls, int hasjumps, int nresults); | 33 | void luaK_setcallreturns (LexState *ls, int nresults); |
33 | void luaK_2stack (LexState *ls, expdesc *var); | 34 | void luaK_tostack (LexState *ls, expdesc *var); |
35 | void luaK_1tostack (LexState *ls, expdesc *var); | ||
34 | void luaK_storevar (LexState *ls, const expdesc *var); | 36 | void luaK_storevar (LexState *ls, const expdesc *var); |
35 | void luaK_prefix (LexState *ls, int op, expdesc *v); | 37 | void luaK_prefix (LexState *ls, int op, expdesc *v); |
36 | void luaK_infix (LexState *ls, expdesc *v); | 38 | void luaK_infix (LexState *ls, int op, expdesc *v); |
37 | void luaK_posfix (LexState *ls, int op, expdesc *v1, expdesc *v2); | 39 | void luaK_posfix (LexState *ls, int op, expdesc *v1, expdesc *v2); |
38 | 40 | ||
39 | 41 | ||