diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-20 15:07:49 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-20 15:07:49 +0100 |
commit | 27fb45eb1c95f9cc02f4ed1b9d573ece0d4c1a18 (patch) | |
tree | ceac81236ebc3e0dcd201888f251016cb2af50ba /py/emitcommon.c | |
parent | a5185f4bc8f60fb2be82580e6f2d93fec53d0a33 (diff) |
Add local_num skeleton framework to deref/closure emit calls.
Diffstat (limited to 'py/emitcommon.c')
-rw-r--r-- | py/emitcommon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/emitcommon.c b/py/emitcommon.c index 07eb1812f..0dfe96d89 100644 --- a/py/emitcommon.c +++ b/py/emitcommon.c @@ -28,7 +28,7 @@ void emit_common_load_id(emit_t *emit, const emit_method_table_t *emit_method_ta } else if (id->kind == ID_INFO_KIND_LOCAL) { EMIT(load_fast, qstr, id->local_num); } else if (id->kind == ID_INFO_KIND_CELL || id->kind == ID_INFO_KIND_FREE) { - EMIT(load_deref, qstr); + EMIT(load_deref, qstr, id->local_num); } else { assert(0); } @@ -48,7 +48,7 @@ void emit_common_store_id(emit_t *emit, const emit_method_table_t *emit_method_t } else if (id->kind == ID_INFO_KIND_LOCAL) { EMIT(store_fast, qstr, id->local_num); } else if (id->kind == ID_INFO_KIND_CELL || id->kind == ID_INFO_KIND_FREE) { - EMIT(store_deref, qstr); + EMIT(store_deref, qstr, id->local_num); } else { assert(0); } @@ -68,7 +68,7 @@ void emit_common_delete_id(emit_t *emit, const emit_method_table_t *emit_method_ } else if (id->kind == ID_INFO_KIND_LOCAL) { EMIT(delete_fast, qstr, id->local_num); } else if (id->kind == ID_INFO_KIND_CELL || id->kind == ID_INFO_KIND_FREE) { - EMIT(delete_deref, qstr); + EMIT(delete_deref, qstr, id->local_num); } else { assert(0); } |