From 69a9a95483ca23ee1a42554a9675a30a9d94cc30 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 14 Aug 2022 23:44:26 -0700 Subject: Chapter 29.3 --- clox/src/debug.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clox/src/debug.c') 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++]; -- cgit v1.2.3-54-g00ecf