summaryrefslogtreecommitdiff
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-16 22:31:57 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-16 22:31:57 +0100
commit7fe2191c9b72e16d271735ca24a9def7ba072217 (patch)
tree70def977a706546272b0f4237bec92598b95054b /py/runtime.c
parent86de21b810693bccdd88d53aacb6d8acf26f09e0 (diff)
py: Code clean-up in native emitter; improve thumb native calls.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c
index caaf795ef..8dbdac9d9 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -1192,13 +1192,14 @@ NORETURN void mp_native_raise(mp_obj_t o) {
nlr_raise(mp_make_raise_obj(o));
}
-// these must correspond to the respective enum
+// these must correspond to the respective enum in runtime0.h
void *const mp_fun_table[MP_F_NUMBER_OF] = {
mp_convert_obj_to_native,
mp_convert_native_to_obj,
mp_load_const_int,
mp_load_const_dec,
mp_load_const_str,
+ mp_load_const_bytes,
mp_load_name,
mp_load_global,
mp_load_build_class,
@@ -1225,6 +1226,8 @@ void *const mp_fun_table[MP_F_NUMBER_OF] = {
mp_call_method_n_kw,
mp_getiter,
mp_iternext,
+ nlr_push,
+ nlr_pop,
mp_native_raise,
mp_import_name,
mp_import_from,