diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-12 18:20:40 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-12 18:20:40 +0100 |
commit | 6ce427755112c28f8a7efab65d329205d833f623 (patch) | |
tree | 47b3b292e4472cc15996b745202dd98133e89feb /py/showbc.c | |
parent | c2803db010ab575e9387e4eaf2f8090b083b3c5f (diff) | |
download | micropython-6ce427755112c28f8a7efab65d329205d833f623.tar.gz micropython-6ce427755112c28f8a7efab65d329205d833f623.zip |
py: Make all LOAD_FAST ops check for unbound local.
This is necessary to catch all cases where locals are referenced before
assignment. We still keep the _0, _1, _2 versions of LOAD_FAST to help
reduced the byte code size in RAM.
Addresses issue #457.
Diffstat (limited to 'py/showbc.c')
-rw-r--r-- | py/showbc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/py/showbc.c b/py/showbc.c index c3342ca841..615d1fe0de 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -132,11 +132,6 @@ void mp_byte_code_print(const byte *ip, int len) { printf("LOAD_FAST_N " UINT_FMT, unum); break; - case MP_BC_LOAD_FAST_CHECKED: - DECODE_UINT; - printf("LOAD_FAST_CHECKED " UINT_FMT, unum); - break; - case MP_BC_LOAD_DEREF: DECODE_UINT; printf("LOAD_DEREF " UINT_FMT, unum); |