diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-20 15:07:49 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-20 15:07:49 +0100 |
commit | 27fb45eb1c95f9cc02f4ed1b9d573ece0d4c1a18 (patch) | |
tree | ceac81236ebc3e0dcd201888f251016cb2af50ba /py/emitnative.c | |
parent | a5185f4bc8f60fb2be82580e6f2d93fec53d0a33 (diff) | |
download | micropython-27fb45eb1c95f9cc02f4ed1b9d573ece0d4c1a18.tar.gz micropython-27fb45eb1c95f9cc02f4ed1b9d573ece0d4c1a18.zip |
Add local_num skeleton framework to deref/closure emit calls.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r-- | py/emitnative.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index def1a66359..b535df74b6 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -675,13 +675,13 @@ static void emit_native_load_global(emit_t *emit, qstr qstr) { emit_post_push_reg(emit, VTYPE_PYOBJ, REG_RET); } -static void emit_native_load_deref(emit_t *emit, qstr qstr) { +static void emit_native_load_deref(emit_t *emit, qstr qstr, int local_num) { // not implemented // in principle could support this quite easily (ldr r0, [r0, #0]) and then get closed over variables! assert(0); } -static void emit_native_load_closure(emit_t *emit, qstr qstr) { +static void emit_native_load_closure(emit_t *emit, qstr qstr, int local_num) { // not implemented assert(0); } @@ -760,7 +760,7 @@ static void emit_native_store_global(emit_t *emit, qstr qstr) { assert(0); } -static void emit_native_store_deref(emit_t *emit, qstr qstr) { +static void emit_native_store_deref(emit_t *emit, qstr qstr, int local_num) { // not implemented assert(0); } @@ -812,7 +812,7 @@ static void emit_native_delete_global(emit_t *emit, qstr qstr) { assert(0); } -static void emit_native_delete_deref(emit_t *emit, qstr qstr) { +static void emit_native_delete_deref(emit_t *emit, qstr qstr, int local_num) { // not supported assert(0); } |