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/emitbc.c | |
parent | 8767d0710ee3f0b78fdfa7b73750d5b66048b8b0 (diff) |
py: Factor out code from runtime.c to emitglue.c.
Diffstat (limited to 'py/emitbc.c')
-rw-r--r-- | py/emitbc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/py/emitbc.c b/py/emitbc.c index 1516b41e5..ac3fc8009 100644 --- a/py/emitbc.c +++ b/py/emitbc.c @@ -12,6 +12,7 @@ #include "scope.h" #include "runtime0.h" #include "emit.h" +#include "emitglue.h" #include "bc0.h" struct _emit_t { @@ -271,9 +272,9 @@ STATIC void emit_bc_end_pass(emit_t *emit) { for (int i = 0; i < emit->scope->num_params; i++) { arg_names[i] = emit->scope->id_info[i].qstr; } - rt_assign_byte_code(emit->scope->unique_code_id, emit->code_base, + mp_emit_glue_assign_byte_code(emit->scope->unique_code_id, emit->code_base, emit->code_info_size + emit->byte_code_size, - emit->scope->num_params, emit->scope->num_locals, emit->scope->stack_size, + emit->scope->num_params, emit->scope->num_locals, emit->scope->scope_flags, arg_names); } } |