diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-06 12:58:40 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-06 12:58:40 +0100 |
commit | cdd96dff2c017c952a238989c10f70143a8dd7d3 (patch) | |
tree | 40f3bf8b2dec68b14ff7ae66ef667b65d90b6527 /py/runtime.c | |
parent | 65cad12d388423f7d9b04a5ae3d7c1b5b176a2da (diff) | |
download | micropython-cdd96dff2c017c952a238989c10f70143a8dd7d3.tar.gz micropython-cdd96dff2c017c952a238989c10f70143a8dd7d3.zip |
py: Implement more features in native emitter.
On x64, native emitter now passes 70 of the tests.
Diffstat (limited to 'py/runtime.c')
-rw-r--r-- | py/runtime.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c index 1ab971de4c..44e0ded507 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -1027,6 +1027,7 @@ void *m_malloc_fail(int num_bytes) { // these must correspond to the respective enum void *const mp_fun_table[MP_F_NUMBER_OF] = { mp_load_const_dec, + mp_obj_new_int_from_long_str, mp_load_const_str, mp_load_name, mp_load_global, @@ -1050,6 +1051,11 @@ void *const mp_fun_table[MP_F_NUMBER_OF] = { mp_call_function_n_kw_for_native, mp_call_method_n_kw, mp_getiter, + mp_import_name, + mp_import_from, + mp_import_all, + mp_obj_new_slice, + mp_unpack_sequence, mp_iternext, }; |