mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
showbc: MAKE_CLOSURE*: Update for new closed-over encoding.
This commit is contained in:
12
py/showbc.c
12
py/showbc.c
@@ -418,15 +418,19 @@ void mp_byte_code_print(const byte *ip, int len) {
|
||||
printf("MAKE_FUNCTION_DEFARGS " UINT_FMT, unum);
|
||||
break;
|
||||
|
||||
case MP_BC_MAKE_CLOSURE:
|
||||
case MP_BC_MAKE_CLOSURE: {
|
||||
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;
|
||||
}
|
||||
|
||||
case MP_BC_MAKE_CLOSURE_DEFARGS:
|
||||
case MP_BC_MAKE_CLOSURE_DEFARGS: {
|
||||
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;
|
||||
}
|
||||
|
||||
case MP_BC_CALL_FUNCTION:
|
||||
DECODE_UINT;
|
||||
|
||||
Reference in New Issue
Block a user