diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-02 15:56:31 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-02 15:56:31 +0100 |
commit | 882b363564b64204c12726d5d2cd7f596322729f (patch) | |
tree | c6f15da0c4cbbaa9413692685a0d6fa0c96f3079 /py/emitnative.c | |
parent | 929a675a3d2d37fb8c6acbec1b999b9bdd84ff23 (diff) | |
download | micropython-882b363564b64204c12726d5d2cd7f596322729f.tar.gz micropython-882b363564b64204c12726d5d2cd7f596322729f.zip |
py: Move to Python 3.4.0 compatibility.
Very little has changed. In Python 3.4 they removed the opcode
STORE_LOCALS, but in Micro Python we only ever used this for CPython
compatibility, so it was a trivial thing to remove. It also allowed to
clean up some dead code (eg the 0xdeadbeef in class construction), and
now class builders use 1 less stack word.
Python 3.4.0 introduced the LOAD_CLASSDEREF opcode, which I have not
yet understood. Still, all tests (apart from bytecode test) still pass.
Bytecode tests needs some more attention, but they are not that
important anymore.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r-- | py/emitnative.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index da0aa60381..524c5caa75 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -818,13 +818,6 @@ STATIC void emit_native_store_subscr(emit_t *emit) { emit_call(emit, MP_F_STORE_SUBSCR, mp_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) @@ -1290,7 +1283,6 @@ const emit_method_table_t EXPORT_FUN(method_table) = { emit_native_store_global, emit_native_store_attr, emit_native_store_subscr, - emit_native_store_locals, emit_native_delete_fast, emit_native_delete_deref, emit_native_delete_name, |