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/bc0.h | |
parent | c2803db010ab575e9387e4eaf2f8090b083b3c5f (diff) |
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/bc0.h')
-rw-r--r-- | py/bc0.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -17,7 +17,6 @@ #define MP_BC_LOAD_FAST_1 (0x21) #define MP_BC_LOAD_FAST_2 (0x22) #define MP_BC_LOAD_FAST_N (0x23) // uint -#define MP_BC_LOAD_FAST_CHECKED (0x24) // uint #define MP_BC_LOAD_DEREF (0x25) // uint #define MP_BC_LOAD_NAME (0x26) // qstr #define MP_BC_LOAD_GLOBAL (0x27) // qstr |