diff options
Diffstat (limited to 'py/emitnative.c')
| -rw-r--r-- | py/emitnative.c | 14 | 
1 files changed, 8 insertions, 6 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index 69022e142..4c2f941e0 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -731,11 +731,6 @@ static void emit_native_store_attr(emit_t *emit, qstr qstr) {      assert(0);  } -static void emit_native_store_locals(emit_t *emit) { -    // not supported -    assert(0); -} -  static void emit_native_store_subscr(emit_t *emit) {      // depends on type of subject:      //  - integer, function, pointer to structure: error @@ -749,6 +744,13 @@ static void emit_native_store_subscr(emit_t *emit) {      emit_call(emit, RT_F_STORE_SUBSCR, rt_store_subscr);  } +static void emit_native_store_locals(emit_t *emit) { +    // not needed +    vtype_kind_t vtype; +    emit_pre_pop_reg(emit, &vtype, REG_TEMP0); +    emit_post(emit); +} +  static void emit_native_delete_fast(emit_t *emit, qstr qstr, int local_num) {      // not implemented      // could support for Python types, just set to None (so GC can reclaim it) @@ -1146,8 +1148,8 @@ const emit_method_table_t EXPORT_FUN(method_table) = {      emit_native_store_global,      emit_native_store_deref,      emit_native_store_attr, -    emit_native_store_locals,      emit_native_store_subscr, +    emit_native_store_locals,      emit_native_delete_fast,      emit_native_delete_name,      emit_native_delete_global,  | 
