diff options
| author | Damien <damien.p.george@gmail.com> | 2013-10-16 20:39:12 +0100 |
|---|---|---|
| committer | Damien <damien.p.george@gmail.com> | 2013-10-16 20:39:12 +0100 |
| commit | bd25445a82c896752dd735f54e3495f0e5e7350a (patch) | |
| tree | af9cf6cd95b739c94c227b7c1877977d9448035f /py/emitbc.c | |
| parent | c226dca1f712914f63ead99fbf4f451aaba90d24 (diff) | |
Implement BC & runtime support for generator/yielding.
Diffstat (limited to 'py/emitbc.c')
| -rw-r--r-- | py/emitbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitbc.c b/py/emitbc.c index 8f28910c0..06c52a0dc 100644 --- a/py/emitbc.c +++ b/py/emitbc.c @@ -76,7 +76,7 @@ static void emit_bc_end_pass(emit_t *emit) { printf("code_size: %u\n", emit->code_size); } else if (emit->pass == PASS_3) { - rt_assign_byte_code(emit->scope->unique_code_id, emit->code_base, emit->code_size, emit->scope->num_params); + rt_assign_byte_code(emit->scope->unique_code_id, emit->code_base, emit->code_size, emit->scope->num_params, emit->scope->num_locals, emit->scope->stack_size, (emit->scope->flags & SCOPE_FLAG_GENERATOR) != 0); } } |
