aboutsummaryrefslogtreecommitdiff
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-09-02 20:24:01 +1000
committerDamien George <damien.p.george@gmail.com>2019-09-26 15:27:10 +1000
commit5889cf58dbab8eae52bdd0ad592556bd7aff06df (patch)
tree251fcbb029c564e1c7c9724d80523c9de08737c5 /py/emit.h
parentfe4e1fe4b907e24af2ff566bdbc2edc49db28dce (diff)
py/bc0: Order opcodes into groups based on their size and format.
Diffstat (limited to 'py/emit.h')
-rw-r--r--py/emit.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/py/emit.h b/py/emit.h
index 70f7bf122..b3b6d755b 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -76,15 +76,15 @@ typedef enum {
// Kind for emit->setup_block()
#define MP_EMIT_SETUP_BLOCK_WITH (0)
-#define MP_EMIT_SETUP_BLOCK_EXCEPT (2)
-#define MP_EMIT_SETUP_BLOCK_FINALLY (3)
+#define MP_EMIT_SETUP_BLOCK_EXCEPT (1)
+#define MP_EMIT_SETUP_BLOCK_FINALLY (2)
// Kind for emit->build()
#define MP_EMIT_BUILD_TUPLE (0)
#define MP_EMIT_BUILD_LIST (1)
-#define MP_EMIT_BUILD_MAP (3)
-#define MP_EMIT_BUILD_SET (6)
-#define MP_EMIT_BUILD_SLICE (8)
+#define MP_EMIT_BUILD_MAP (2)
+#define MP_EMIT_BUILD_SET (3)
+#define MP_EMIT_BUILD_SLICE (4)
// Kind for emit->yield()
#define MP_EMIT_YIELD_VALUE (0)