diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-27 19:12:05 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-27 19:12:05 +0100 |
| commit | 968bf34c4c7c457816eb3a9d8358519ba1d3a65f (patch) | |
| tree | b186c3207777c6f4553589ad19a3e2dc385aeb52 /py/emitnative.c | |
| parent | db128919187d86962f7ba46ddb072c1dfe53eb7e (diff) | |
py: Remove unnecessary LOAD_CONST_ID bytecode.
It's the same as LOAD_CONST_STR.
Diffstat (limited to 'py/emitnative.c')
| -rw-r--r-- | py/emitnative.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index 1949009eb..704173002 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -672,16 +672,6 @@ STATIC void emit_native_load_const_dec(emit_t *emit, qstr qstr) { emit_post_push_reg(emit, VTYPE_PYOBJ, REG_RET); } -STATIC void emit_native_load_const_id(emit_t *emit, qstr qstr) { - emit_native_pre(emit); - if (emit->do_viper_types) { - assert(0); - } else { - emit_call_with_imm_arg(emit, MP_F_LOAD_CONST_STR, mp_load_const_str, qstr, REG_ARG_1); // TODO - emit_post_push_reg(emit, VTYPE_PYOBJ, REG_RET); - } -} - STATIC void emit_native_load_const_str(emit_t *emit, qstr qstr, bool bytes) { emit_native_pre(emit); if (emit->do_viper_types) { @@ -1322,7 +1312,6 @@ const emit_method_table_t EXPORT_FUN(method_table) = { emit_native_load_const_small_int, emit_native_load_const_int, emit_native_load_const_dec, - emit_native_load_const_id, emit_native_load_const_str, emit_native_load_null, emit_native_load_fast, |
