diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-09-04 14:44:01 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-09-04 14:44:01 +0100 |
| commit | b534e1b9f14c189d2cef209d40f598e62164694a (patch) | |
| tree | 04dae8bd856e98819fe34ad83a9c52ee69213087 /py/bc.h | |
| parent | dda46460fff56c0756adba0d63fd72b311bdbcc9 (diff) | |
py: Use variable length encoded uints in more places in bytecode.
Code-info size, block name, source name, n_state and n_exc_stack now use
variable length encoded uints. This saves 7-9 bytes per bytecode
function for most functions.
Diffstat (limited to 'py/bc.h')
| -rw-r--r-- | py/bc.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -49,6 +49,8 @@ typedef struct _mp_code_state { //mp_exc_stack_t exc_state[0]; } mp_code_state; +mp_uint_t mp_decode_uint(const byte **ptr); + mp_vm_return_kind_t mp_execute_bytecode(mp_code_state *code_state, volatile mp_obj_t inject_exc); void mp_setup_code_state(mp_code_state *code_state, mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args); void mp_bytecode_print(const void *descr, const byte *code, int len); |
