diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-12 11:38:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-12 11:38:42 -0300 |
commit | f6aab3ec1f111cd8d968bdcb7ca800e93b819d24 (patch) | |
tree | 4c36c418ecc9062e6d95de73457198b38b0afce9 /lcode.h | |
parent | be8445d7e4b6122620c428877b51a27d464253d5 (diff) | |
download | lua-f6aab3ec1f111cd8d968bdcb7ca800e93b819d24.tar.gz lua-f6aab3ec1f111cd8d968bdcb7ca800e93b819d24.tar.bz2 lua-f6aab3ec1f111cd8d968bdcb7ca800e93b819d24.zip |
First implementation of constant propagation
Local constant variables initialized with compile-time constants
are optimized away from the code.
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -56,6 +56,7 @@ 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_isKint (expdesc *e); | 58 | LUAI_FUNC int luaK_isKint (expdesc *e); |
59 | LUAI_FUNC int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v); | ||
59 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); | 60 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); |
60 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); | 61 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); |
61 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); | 62 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); |