From f6aab3ec1f111cd8d968bdcb7ca800e93b819d24 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 12 Jul 2019 11:38:42 -0300 Subject: First implementation of constant propagation Local constant variables initialized with compile-time constants are optimized away from the code. --- lobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lobject.h') 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 { 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; -- cgit v1.2.3-55-g6feb