diff options
author | Tom Willemse | 2022-08-14 23:44:26 -0700 |
---|---|---|
committer | Tom Willemse | 2022-08-14 23:44:26 -0700 |
commit | 69a9a95483ca23ee1a42554a9675a30a9d94cc30 (patch) | |
tree | 50ae1504f3371f6a6df17338dd5658b4d1aa579a /clox/src/debug.c | |
parent | 1bba129074b812a354eccfdd9cc69b233789dc6c (diff) | |
download | crafting-interpreters-69a9a95483ca23ee1a42554a9675a30a9d94cc30.tar.gz crafting-interpreters-69a9a95483ca23ee1a42554a9675a30a9d94cc30.zip |
Chapter 29.3
Diffstat (limited to 'clox/src/debug.c')
-rw-r--r-- | clox/src/debug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clox/src/debug.c b/clox/src/debug.c index 4a39811..b8e4a48 100644 --- a/clox/src/debug.c +++ b/clox/src/debug.c @@ -86,6 +86,8 @@ int disassembleInstruction(Chunk *chunk, int offset) { return constantInstruction("OP_GET_PROPERTY", chunk, offset); case OP_SET_PROPERTY: return constantInstruction("OP_SET_PROPERTY", chunk, offset); + case OP_GET_SUPER: + return constantInstruction("OP_GET_SUPER", chunk, offset); case OP_EQUAL: return simpleInstruction("OP_EQUAL", offset); case OP_GREATER: @@ -116,6 +118,8 @@ int disassembleInstruction(Chunk *chunk, int offset) { return byteInstruction("OP_CALL", chunk, offset); case OP_INVOKE: return invokeInstruction("OP_INVOKE", chunk, offset); + case OP_SUPER_INVOKE: + return invokeInstruction("OP_SUPER_INVOKE", chunk, offset); case OP_CLOSURE: { offset++; uint8_t constant = chunk->code[offset++]; |