diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-27 23:26:35 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-27 23:26:35 +0000 |
commit | 2326d52d2056aace9c5eddd170fe6ad4186e39e8 (patch) | |
tree | 0040b59c798301a1fdb30901b5e0d4adae143adb /py/emitglue.h | |
parent | 8767d0710ee3f0b78fdfa7b73750d5b66048b8b0 (diff) | |
download | micropython-2326d52d2056aace9c5eddd170fe6ad4186e39e8.tar.gz micropython-2326d52d2056aace9c5eddd170fe6ad4186e39e8.zip |
py: Factor out code from runtime.c to emitglue.c.
Diffstat (limited to 'py/emitglue.h')
-rw-r--r-- | py/emitglue.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/py/emitglue.h b/py/emitglue.h new file mode 100644 index 0000000000..e06578e220 --- /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); |