summaryrefslogtreecommitdiff
path: root/src/lj_lex.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-06-09 01:27:37 +0200
committerMike Pall <mike>2011-06-09 01:27:37 +0200
commit8c32b38ca3d522d6c90249495231a331aafca7e2 (patch)
tree0dad822398bef90be8caec0945d6c32a790d7ec9 /src/lj_lex.h
parent585cf05dbd54564d2d3387cef09b3ac2d5e52afd (diff)
downloadluajit-8c32b38ca3d522d6c90249495231a331aafca7e2.tar.gz
luajit-8c32b38ca3d522d6c90249495231a331aafca7e2.tar.bz2
luajit-8c32b38ca3d522d6c90249495231a331aafca7e2.zip
Flatten and compress in-memory debug info (saves ~70%).
Diffstat (limited to 'src/lj_lex.h')
-rw-r--r--src/lj_lex.h7
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 {
38 BCLine line; /* Line number for this bytecode. */ 38 BCLine line; /* Line number for this bytecode. */
39} BCInsLine; 39} BCInsLine;
40 40
41/* Info for local variables. Only used during bytecode generation. */
42typedef struct VarInfo {
43 GCRef name; /* Local variable name. */
44 BCPos startpc; /* First point where the local variable is active. */
45 BCPos endpc; /* First point where the local variable is dead. */
46} VarInfo;
47
41/* Lua lexer state. */ 48/* Lua lexer state. */
42typedef struct LexState { 49typedef struct LexState {
43 struct FuncState *fs; /* Current FuncState. Defined in lj_parse.c. */ 50 struct FuncState *fs; /* Current FuncState. Defined in lj_parse.c. */