diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-13 15:55:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-13 15:55:54 +0000 |
commit | dab1385177558f1d27c03b59e443b6fa25a2cdc0 (patch) | |
tree | da284535f901727c739266c2bf50ed5bbec88f1a /py/bc0.h | |
parent | d710cef6610eff758e96f351e6b91c1c9d8df9f6 (diff) |
py: Add load_const_obj to emitter, add LOAD_CONST_OBJ to bytecode.
This allows to directly load a Python object to the Python stack. See
issue #722 for background.
Diffstat (limited to 'py/bc0.h')
-rw-r--r-- | py/bc0.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -38,6 +38,7 @@ #define MP_BC_LOAD_CONST_DEC (0x16) // qstr #define MP_BC_LOAD_CONST_BYTES (0x17) // qstr #define MP_BC_LOAD_CONST_STRING (0x18) // qstr +#define MP_BC_LOAD_CONST_OBJ (0x09) // ptr; TODO renumber to be in order #define MP_BC_LOAD_NULL (0x19) #define MP_BC_LOAD_FAST_N (0x1a) // uint |