diff options
author | Mike Pall <mike> | 2012-10-21 13:51:12 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-10-21 13:51:12 +0200 |
commit | f6536c6696deca9fb7b9744573406c83f0f893a4 (patch) | |
tree | 5e807c50097ece684b199b0767b3b260fea5fea7 /src/lj_lex.h | |
parent | 614e78d1f66a126a69e1ec15481185e20e342fb7 (diff) | |
download | luajit2-f6536c6696deca9fb7b9744573406c83f0f893a4.tar.gz |
Fix detection of immutable upvalues.
Diffstat (limited to 'src/lj_lex.h')
-rw-r--r-- | src/lj_lex.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lj_lex.h b/src/lj_lex.h index 7a4fd74b..d16461a2 100644 --- a/src/lj_lex.h +++ b/src/lj_lex.h @@ -41,9 +41,11 @@ typedef struct BCInsLine { /* Info for local variables. Only used during bytecode generation. */ typedef struct VarInfo { - GCRef name; /* Local variable name. */ + GCRef name; /* Local variable name or goto/label name. */ BCPos startpc; /* First point where the local variable is active. */ BCPos endpc; /* First point where the local variable is dead. */ + uint8_t slot; /* Variable slot. */ + uint8_t info; /* Variable/goto/label info. */ } VarInfo; /* Lua lexer state. */ |