Better debug info for struct bytecode.

--debug-dump-disasm produces more comprehensible output now.
This commit is contained in:
Stephen Dolan committed 2013-05-16 00:51:17 +01:00
1 parent f8644c31a3
commit a1e4dfa324
3 files changed
+59 -6

No files matched your search

+3
View File
@@ -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);