summaryrefslogtreecommitdiffstatshomepage
path: root/py/bc.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/bc.c')
-rw-r--r--py/bc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/py/bc.c b/py/bc.c
index 7d0b13bd74..5625da8cf3 100644
--- a/py/bc.c
+++ b/py/bc.c
@@ -292,7 +292,8 @@ continue2:;
#if MICROPY_PERSISTENT_CODE_LOAD || MICROPY_PERSISTENT_CODE_SAVE
// The following table encodes the number of bytes that a specific opcode
-// takes up. There are 3 special opcodes that always have an extra byte:
+// takes up. There are 4 special opcodes that always have an extra byte:
+// MP_BC_UNWIND_JUMP
// MP_BC_MAKE_CLOSURE
// MP_BC_MAKE_CLOSURE_DEFARGS
// MP_BC_RAISE_VARARGS
@@ -402,7 +403,8 @@ uint mp_opcode_format(const byte *ip, size_t *opcode_size, bool count_var_uint)
ip += 3;
} else {
int extra_byte = (
- *ip == MP_BC_RAISE_VARARGS
+ *ip == MP_BC_UNWIND_JUMP
+ || *ip == MP_BC_RAISE_VARARGS
|| *ip == MP_BC_MAKE_CLOSURE
|| *ip == MP_BC_MAKE_CLOSURE_DEFARGS
);