py/compile: Add support to select the native emitter at runtime.

This commit is contained in:
Damien George
2019-03-09 10:59:25 +11:00
parent 0e4c24ec08
commit d9d92f27d7
6 changed files with 45 additions and 3 deletions

View File

@@ -2727,6 +2727,11 @@ STATIC void emit_native_end_except_handler(emit_t *emit) {
}
const emit_method_table_t EXPORT_FUN(method_table) = {
#if MICROPY_DYNAMIC_COMPILER
EXPORT_FUN(new),
EXPORT_FUN(free),
#endif
emit_native_start_pass,
emit_native_end_pass,
emit_native_last_emit_was_return_value,