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

showbc: MAKE_CLOSURE*: Update for new closed-over encoding.

parent 5e3e2d00
No related branches found
No related tags found
No related merge requests found
...@@ -418,15 +418,19 @@ void mp_byte_code_print(const byte *ip, int len) { ...@@ -418,15 +418,19 @@ void mp_byte_code_print(const byte *ip, int len) {
printf("MAKE_FUNCTION_DEFARGS " UINT_FMT, unum); printf("MAKE_FUNCTION_DEFARGS " UINT_FMT, unum);
break; break;
case MP_BC_MAKE_CLOSURE: case MP_BC_MAKE_CLOSURE: {
DECODE_PTR; DECODE_PTR;
printf("MAKE_CLOSURE " UINT_FMT, unum); machine_uint_t n_closed_over = *ip++;
printf("MAKE_CLOSURE " UINT_FMT " " UINT_FMT, unum, n_closed_over);
break; break;
}
case MP_BC_MAKE_CLOSURE_DEFARGS: case MP_BC_MAKE_CLOSURE_DEFARGS: {
DECODE_PTR; DECODE_PTR;
printf("MAKE_CLOSURE_DEFARGS " UINT_FMT, unum); machine_uint_t n_closed_over = *ip++;
printf("MAKE_CLOSURE_DEFARGS " UINT_FMT " " UINT_FMT, unum, n_closed_over);
break; break;
}
case MP_BC_CALL_FUNCTION: case MP_BC_CALL_FUNCTION:
DECODE_UINT; DECODE_UINT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment