summaryrefslogtreecommitdiffstats
path: root/bytecode.h
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-16 00:51:17 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-16 00:51:17 +0100
commita1e4dfa32412457e03dd0e4e4c2ac17eca02c4f8 (patch)
treef93f78777d4b54fa8f32630cfccac283572bec55 /bytecode.h
parentf8644c31a3e6f4c3d9a95837c22a18fd27155510 (diff)
Better debug info for struct bytecode.
--debug-dump-disasm produces more comprehensible output now.
Diffstat (limited to 'bytecode.h')
-rw-r--r--bytecode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bytecode.h b/bytecode.h
index e84f1387..c742cdd9 100644
--- a/bytecode.h
+++ b/bytecode.h
@@ -10,6 +10,7 @@
struct symbol_table {
struct cfunction* cfunctions;
int ncfunctions;
+ jv cfunc_names;
};
// The bytecode format matters in:
@@ -33,6 +34,8 @@ struct bytecode {
int nsubfunctions;
struct bytecode* parent;
+
+ jv debuginfo;
};
void dump_disassembly(int, struct bytecode* code);