diff options
author | Mike Pall <mike> | 2011-06-09 01:27:37 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-06-09 01:27:37 +0200 |
commit | 8c32b38ca3d522d6c90249495231a331aafca7e2 (patch) | |
tree | 0dad822398bef90be8caec0945d6c32a790d7ec9 /src/lj_lex.h | |
parent | 585cf05dbd54564d2d3387cef09b3ac2d5e52afd (diff) | |
download | luajit2-8c32b38ca3d522d6c90249495231a331aafca7e2.tar.gz |
Flatten and compress in-memory debug info (saves ~70%).
Diffstat (limited to 'src/lj_lex.h')
-rw-r--r-- | src/lj_lex.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lj_lex.h b/src/lj_lex.h index 0718f5a6..78a7e1a9 100644 --- a/src/lj_lex.h +++ b/src/lj_lex.h @@ -38,6 +38,13 @@ typedef struct BCInsLine { BCLine line; /* Line number for this bytecode. */ } BCInsLine; +/* Info for local variables. Only used during bytecode generation. */ +typedef struct VarInfo { + GCRef name; /* Local variable name. */ + BCPos startpc; /* First point where the local variable is active. */ + BCPos endpc; /* First point where the local variable is dead. */ +} VarInfo; + /* Lua lexer state. */ typedef struct LexState { struct FuncState *fs; /* Current FuncState. Defined in lj_parse.c. */ |