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-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | ||
