aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/debug.c
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-08-13 00:04:31 -0700
committerGravatar Tom Willemse2022-08-13 00:04:31 -0700
commit4e77cfa61262a03055aeb273108fd9a49e8dfa4f (patch)
tree9c736eb135e8bd1143e0e4289e87edd2324586c9 /clox/src/debug.c
parentf4185577e56a893b9375bc94d71bef5f9eb51891 (diff)
downloadcrafting-interpreters-4e77cfa61262a03055aeb273108fd9a49e8dfa4f.tar.gz
crafting-interpreters-4e77cfa61262a03055aeb273108fd9a49e8dfa4f.zip
Chapter 27.4
Diffstat (limited to 'clox/src/debug.c')
-rw-r--r--clox/src/debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clox/src/debug.c b/clox/src/debug.c
index a2c2c53..fe96c3d 100644
--- a/clox/src/debug.c
+++ b/clox/src/debug.c
@@ -73,6 +73,10 @@ int disassembleInstruction(Chunk *chunk, int offset) {
return byteInstruction("OP_GET_UPVALUE", chunk, offset);
case OP_SET_UPVALUE:
return byteInstruction("OP_SET_UPVALUE", chunk, offset);
+ case OP_GET_PROPERTY:
+ return constantInstruction("OP_GET_PROPERTY", chunk, offset);
+ case OP_SET_PROPERTY:
+ return constantInstruction("OP_SET_PROPERTY", chunk, offset);
case OP_EQUAL:
return simpleInstruction("OP_EQUAL", offset);
case OP_GREATER: