Skip to content
Snippets Groups Projects
Commit 182c31a2 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

showbc: Add few bytecodes related to "with".

parent c63f9846
No related branches found
No related tags found
No related merge requests found
...@@ -244,6 +244,15 @@ void mp_byte_code_print(const byte *ip, int len) { ...@@ -244,6 +244,15 @@ void mp_byte_code_print(const byte *ip, int len) {
printf("SETUP_LOOP " UINT_FMT, ip + unum - ip_start); printf("SETUP_LOOP " UINT_FMT, ip + unum - ip_start);
break; 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: case MP_BC_UNWIND_JUMP:
DECODE_SLABEL; DECODE_SLABEL;
printf("UNWIND_JUMP " UINT_FMT " %d", ip + unum - ip_start, *ip); printf("UNWIND_JUMP " UINT_FMT " %d", ip + unum - ip_start, *ip);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment