diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-10-23 01:23:11 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-11-13 12:49:18 +0000 |
| commit | 713ea1800d1f0c82a0c75885ad034705556ab5ef (patch) | |
| tree | ac865eaf1d258007dbd6718d972967886d9a39e8 /py/objfun.h | |
| parent | 3a3db4dcf0400cffef860f61a84979cb1f7a7541 (diff) | |
py: Add constant table to bytecode.
Contains just argument names at the moment but makes it easy to add
arbitrary constants.
Diffstat (limited to 'py/objfun.h')
| -rw-r--r-- | py/objfun.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objfun.h b/py/objfun.h index cdc495e5b..d02fada9b 100644 --- a/py/objfun.h +++ b/py/objfun.h @@ -32,6 +32,7 @@ typedef struct _mp_obj_fun_bc_t { mp_obj_base_t base; mp_obj_dict_t *globals; // the context within which this function was defined const byte *bytecode; // bytecode for the function + const mp_uint_t *const_table; // constant table // the following extra_args array is allocated space to take (in order): // - values of positional default args (if any) // - a single slot for default kw args dict (if it has them) |
