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 /lobject.h | |
parent | be8445d7e4b6122620c428877b51a27d464253d5 (diff) | |
download | lua-github-f6aab3ec1f111cd8d968bdcb7ca800e93b819d24.tar.gz |
First implementation of constant propagation
Local constant variables initialized with compile-time constants
are optimized away from the code.
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -460,7 +460,7 @@ typedef struct Upvaldesc { TString *name; /* upvalue name (for debug information) */ lu_byte instack; /* whether it is in stack (register) */ lu_byte idx; /* index of upvalue (in stack or in outer function's list) */ - lu_byte ro; /* true if upvalue is read-only (const) */ + lu_byte kind; /* kind of corresponding variable */ } Upvaldesc; |