diff options
Diffstat (limited to 'dbg.d')
| -rw-r--r-- | dbg.d | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -47,6 +47,10 @@ void printForm(Form f, string prefix = "") { writefln("%s with %d body lines", prefix, func.funcBody.length); writefln("%s <end fn %s>", prefix, func.name.name); break; + case FormType.DEF: + Def def = cast(Def)f; + writefln("%s var: %s", prefix, def.name.name); + break; default: writeln("printFormDefault"); break; @@ -101,6 +105,8 @@ int disassemble(Chunk chunk, int offset) { return simpleInstruction("OP_SUBTRACT", offset); case OpCode.OP_CONSTANT: return constantInstruction("OP_CONSTANT", chunk, offset); + case OpCode.OP_DEFINE_GLOBAL: + return constantInstruction("OP_DEFINE_GLOBAL", chunk, offset); case OpCode.OP_NEGATE: return simpleInstruction("OP_NEGATE", offset); case OpCode.OP_POP: |
