diff options
| author | Damien George | 2014-06-30 05:17:25 +0100 |
|---|---|---|
| committer | Damien George | 2014-06-30 05:17:25 +0100 |
| commit | b601d9574ad03a18d3eb476d631f547c7ea28243 (patch) | |
| tree | 9fceb779e8109b1c147f6c30fe9a24e9d2b19d22 /py/emitpass1.c | |
| parent | 5813efd634a282caea3cca6e8448bda253f21c35 (diff) | |
py: Improvements to native emitter.
Native emitter can now compile try/except blocks using nlr_push/nlr_pop.
It probably only works for 1 level of exception handling. It doesn't
work on Thumb (only x64).
Native emitter can also handle some additional op codes.
With this patch, 198 tests now pass using "-X emit=native" option to
micropython.
Diffstat (limited to 'py/emitpass1.c')
| -rw-r--r-- | py/emitpass1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/emitpass1.c b/py/emitpass1.c index bea1af4db..b39597318 100644 --- a/py/emitpass1.c +++ b/py/emitpass1.c @@ -214,6 +214,10 @@ const emit_method_table_t emit_pass1_method_table = { (void*)emit_pass1_dummy, (void*)emit_pass1_dummy, (void*)emit_pass1_dummy, + + (void*)emit_pass1_dummy, + (void*)emit_pass1_dummy, + #if MICROPY_EMIT_CPYTHON (void*)emit_pass1_dummy, (void*)emit_pass1_dummy, |
