aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-12 11:38:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-12 11:38:42 -0300
commitf6aab3ec1f111cd8d968bdcb7ca800e93b819d24 (patch)
tree4c36c418ecc9062e6d95de73457198b38b0afce9 /lobject.h
parentbe8445d7e4b6122620c428877b51a27d464253d5 (diff)
downloadlua-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 'lobject.h')
-rw-r--r--lobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index 64366a94..2f95bcb5 100644
--- a/lobject.h
+++ b/lobject.h
@@ -460,7 +460,7 @@ typedef struct Upvaldesc {
460 TString *name; /* upvalue name (for debug information) */ 460 TString *name; /* upvalue name (for debug information) */
461 lu_byte instack; /* whether it is in stack (register) */ 461 lu_byte instack; /* whether it is in stack (register) */
462 lu_byte idx; /* index of upvalue (in stack or in outer function's list) */ 462 lu_byte idx; /* index of upvalue (in stack or in outer function's list) */
463 lu_byte ro; /* true if upvalue is read-only (const) */ 463 lu_byte kind; /* kind of corresponding variable */
464} Upvaldesc; 464} Upvaldesc;
465 465
466 466