diff options
author | Damien George <damien@micropython.org> | 2024-02-09 17:41:48 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-02-16 14:17:01 +1100 |
commit | e2ff00e81113d7a3f32f860652017644b5d68bf1 (patch) | |
tree | 061a1d917a23be78706c3a4cfd6a46b1307a4ebf /py/nativeglue.c | |
parent | 5e3006f1172d0eabbbefeb3268dfb942ec7cf9cd (diff) |
py/emitglue: Introduce mp_proto_fun_t as a more general mp_raw_code_t.
Allows bytecode itself to be used instead of an mp_raw_code_t in the simple
and common cases of a bytecode function without any children.
This can be used to further reduce frozen code size, and has the potential
to optimise other areas like importing.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/nativeglue.c')
-rw-r--r-- | py/nativeglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/nativeglue.c b/py/nativeglue.c index 217c6b3df..074b1206e 100644 --- a/py/nativeglue.c +++ b/py/nativeglue.c @@ -281,7 +281,7 @@ const mp_fun_table_t mp_fun_table = { mp_obj_set_store, mp_obj_list_append, mp_obj_dict_store, - mp_make_function_from_raw_code, + mp_make_function_from_proto_fun, mp_native_call_function_n_kw, mp_call_method_n_kw, mp_call_method_n_kw_var, |