aboutsummaryrefslogtreecommitdiff
path: root/py/emitglue.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-27 23:26:35 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-27 23:26:35 +0000
commit2326d52d2056aace9c5eddd170fe6ad4186e39e8 (patch)
tree0040b59c798301a1fdb30901b5e0d4adae143adb /py/emitglue.h
parent8767d0710ee3f0b78fdfa7b73750d5b66048b8b0 (diff)
py: Factor out code from runtime.c to emitglue.c.
Diffstat (limited to 'py/emitglue.h')
-rw-r--r--py/emitglue.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/py/emitglue.h b/py/emitglue.h
new file mode 100644
index 000000000..e06578e22
--- /dev/null
+++ b/py/emitglue.h
@@ -0,0 +1,9 @@
+// These variables and functions glue the code emitters to the runtime.
+
+void mp_emit_glue_init(void);
+void mp_emit_glue_deinit(void);
+uint mp_emit_glue_get_unique_code_id(void);
+uint mp_emit_glue_get_unique_code(uint unique_code_id);
+void mp_emit_glue_assign_byte_code(uint unique_code_id, byte *code, uint len, int n_args, int n_locals, uint scope_flags, qstr *arg_names);
+void mp_emit_glue_assign_native_code(uint unique_code_id, void *f, uint len, int n_args);
+void mp_emit_glue_assign_inline_asm_code(uint unique_code_id, void *f, uint len, int n_args);