aboutsummaryrefslogtreecommitdiff
path: root/py/bc0.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-01 20:08:18 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-01 20:08:18 +0000
commitcbddb279bba5395ad444cb46d78223c8f9064c56 (patch)
tree773644ba542ebb307d036526cdae4f5086e65633 /py/bc0.h
parenta908202d60e15d37b47fb32b414658237119cd60 (diff)
py: Implement break/continue from an exception with finally.
Still todo: break/continue from within the finally block itself.
Diffstat (limited to 'py/bc0.h')
-rw-r--r--py/bc0.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/bc0.h b/py/bc0.h
index 7aab55561..37c0bf7bb 100644
--- a/py/bc0.h
+++ b/py/bc0.h
@@ -52,8 +52,6 @@
#define MP_BC_JUMP_IF_TRUE_OR_POP (0x48) // rel byte code offset, 16-bit signed, in excess
#define MP_BC_JUMP_IF_FALSE_OR_POP (0x49) // rel byte code offset, 16-bit signed, in excess
#define MP_BC_SETUP_LOOP (0x4a) // rel byte code offset, 16-bit unsigned
-#define MP_BC_BREAK_LOOP (0x4b) // rel byte code offset, 16-bit unsigned
-#define MP_BC_CONTINUE_LOOP (0x4c) // rel byte code offset, 16-bit unsigned
#define MP_BC_SETUP_WITH (0x4d) // rel byte code offset, 16-bit unsigned
#define MP_BC_WITH_CLEANUP (0x4e)
#define MP_BC_SETUP_EXCEPT (0x4f) // rel byte code offset, 16-bit unsigned
@@ -63,6 +61,7 @@
#define MP_BC_FOR_ITER (0x53) // rel byte code offset, 16-bit unsigned
#define MP_BC_POP_BLOCK (0x54)
#define MP_BC_POP_EXCEPT (0x55)
+#define MP_BC_UNWIND_JUMP (0x56) // rel byte code offset, 16-bit signed, in excess; then a byte
#define MP_BC_UNARY_OP (0x60) // byte
#define MP_BC_BINARY_OP (0x61) // byte