diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-17 16:38:46 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-17 16:50:19 +1100 |
commit | 5640e6dacd39d97adffce8490991c457f457b1cd (patch) | |
tree | c1978abcf974c64cc7aede37404f113ac74faafc /py/bc.h | |
parent | 71a3d6ec3bd02c5bd13334537e1bd146bb643bad (diff) |
py: Provide mp_decode_uint_value to help optimise stack usage.
This has a noticeable improvement on x86-64 and Thumb2 archs, where stack
usage is reduced by 2 machine words in the VM.
Diffstat (limited to 'py/bc.h')
-rw-r--r-- | py/bc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -91,6 +91,7 @@ typedef struct _mp_code_state_t { } mp_code_state_t; mp_uint_t mp_decode_uint(const byte **ptr); +mp_uint_t mp_decode_uint_value(const byte *ptr); mp_vm_return_kind_t mp_execute_bytecode(mp_code_state_t *code_state, volatile mp_obj_t inject_exc); mp_code_state_t *mp_obj_fun_bc_prepare_codestate(mp_obj_t func, size_t n_args, size_t n_kw, const mp_obj_t *args); |