diff options
author | Damien George <damien.p.george@gmail.com> | 2019-09-02 20:24:01 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-09-26 15:27:10 +1000 |
commit | 5889cf58dbab8eae52bdd0ad592556bd7aff06df (patch) | |
tree | 251fcbb029c564e1c7c9724d80523c9de08737c5 /py/emit.h | |
parent | fe4e1fe4b907e24af2ff566bdbc2edc49db28dce (diff) |
py/bc0: Order opcodes into groups based on their size and format.
Diffstat (limited to 'py/emit.h')
-rw-r--r-- | py/emit.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |