summaryrefslogtreecommitdiff
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-02 15:56:31 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-02 15:56:31 +0100
commit882b363564b64204c12726d5d2cd7f596322729f (patch)
treec6f15da0c4cbbaa9413692685a0d6fa0c96f3079 /py/emit.h
parent929a675a3d2d37fb8c6acbec1b999b9bdd84ff23 (diff)
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/emit.h')
-rw-r--r--py/emit.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/emit.h b/py/emit.h
index 0d95b699e..20128fc75 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -54,7 +54,6 @@ typedef struct _emit_method_table_t {
void (*store_global)(emit_t *emit, qstr qstr);
void (*store_attr)(emit_t *emit, qstr qstr);
void (*store_subscr)(emit_t *emit);
- void (*store_locals)(emit_t *emit);
void (*delete_fast)(emit_t *emit, qstr qstr, int local_num);
void (*delete_deref)(emit_t *emit, qstr qstr, int local_num);
void (*delete_name)(emit_t *emit, qstr qstr);