diff options
| author | Damien <damien.p.george@gmail.com> | 2013-10-09 23:10:10 +0100 |
|---|---|---|
| committer | Damien <damien.p.george@gmail.com> | 2013-10-09 23:10:10 +0100 |
| commit | a397776d6bf1a9d0b07d7138b289cd661c5e1b99 (patch) | |
| tree | c56f96f5abb6b3a57117702875a868d2d020949d /py/emitbc.c | |
| parent | 91d387de7df9e19bb5b00e6ad4c94790eb3422e3 (diff) | |
Implement basic class/object functionality in runtime.
Diffstat (limited to 'py/emitbc.c')
| -rw-r--r-- | py/emitbc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/py/emitbc.c b/py/emitbc.c index 81b059d1c..d1ac74f0e 100644 --- a/py/emitbc.c +++ b/py/emitbc.c @@ -348,16 +348,16 @@ static void emit_bc_store_attr(emit_t *emit, qstr qstr) { emit_write_byte_1_qstr(emit, PYBC_STORE_ATTR, qstr); } -static void emit_bc_store_locals(emit_t *emit) { - emit_pre(emit, -1); - emit_write_byte_1(emit, PYBC_STORE_LOCALS); -} - static void emit_bc_store_subscr(emit_t *emit) { emit_pre(emit, -3); emit_write_byte_1(emit, PYBC_STORE_SUBSCR); } +static void emit_bc_store_locals(emit_t *emit) { + // not needed for byte code + emit_pre(emit, -1); +} + static void emit_bc_delete_fast(emit_t *emit, qstr qstr, int local_num) { assert(local_num >= 0); emit_pre(emit, 0); @@ -718,8 +718,8 @@ const emit_method_table_t emit_bc_method_table = { emit_bc_store_global, emit_bc_store_deref, emit_bc_store_attr, - emit_bc_store_locals, emit_bc_store_subscr, + emit_bc_store_locals, emit_bc_delete_fast, emit_bc_delete_name, emit_bc_delete_global, |
