summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitnative.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-03-09 10:59:25 +1100
committerDamien George <damien.p.george@gmail.com>2019-03-14 12:22:25 +1100
commitd9d92f27d7cce287850d971abf3104d2230092fa (patch)
treee69b50bfa4b143f0a6e4efe76fc1d9834e7356fc /py/emitnative.c
parent0e4c24ec08c19773b26a662abb133c05b474b1fa (diff)
downloadmicropython-d9d92f27d7cce287850d971abf3104d2230092fa.tar.gz
micropython-d9d92f27d7cce287850d971abf3104d2230092fa.zip
py/compile: Add support to select the native emitter at runtime.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r--py/emitnative.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/emitnative.c b/py/emitnative.c
index aa5ec4935d..da986dc5d9 100644
--- a/py/emitnative.c
+++ b/py/emitnative.c
@@ -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,