diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-03-27 12:29:34 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-03-28 02:20:21 +0200 |
commit | 182c31a2085c89c722f188102603ce857696de11 (patch) | |
tree | 6954efb18ea3779abbd80f8661ebf0ed99a1eff5 | |
parent | c63f984647cb69147359440db19d417dfecab2fa (diff) | |
download | micropython-182c31a2085c89c722f188102603ce857696de11.tar.gz micropython-182c31a2085c89c722f188102603ce857696de11.zip |
showbc: Add few bytecodes related to "with".
-rw-r--r-- | py/showbc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/py/showbc.c b/py/showbc.c index eb743bd29e..d4382de440 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -244,6 +244,15 @@ void mp_byte_code_print(const byte *ip, int len) { printf("SETUP_LOOP " UINT_FMT, ip + unum - ip_start); break; + case MP_BC_SETUP_WITH: + DECODE_ULABEL; // loop-like labels are always forward + printf("SETUP_WITH " UINT_FMT, ip + unum - ip_start); + break; + + case MP_BC_WITH_CLEANUP: + printf("WITH_CLEANUP"); + break; + case MP_BC_UNWIND_JUMP: DECODE_SLABEL; printf("UNWIND_JUMP " UINT_FMT " %d", ip + unum - ip_start, *ip); |