showbc: Dump all CALL_FUNCTION_* and CALL_METHOD_* opcodes.
This commit is contained in:
parent
df6567e634
commit
48bdb21332
30
py/showbc.c
30
py/showbc.c
|
@ -399,11 +399,41 @@ void mp_byte_code_print(const byte *ip, int len) {
|
||||||
printf("CALL_FUNCTION n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);
|
printf("CALL_FUNCTION n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case MP_BC_CALL_FUNCTION_VAR:
|
||||||
|
DECODE_UINT;
|
||||||
|
printf("CALL_FUNCTION_VAR n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case MP_BC_CALL_FUNCTION_KW:
|
||||||
|
DECODE_UINT;
|
||||||
|
printf("CALL_FUNCTION_KW n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case MP_BC_CALL_FUNCTION_VAR_KW:
|
||||||
|
DECODE_UINT;
|
||||||
|
printf("CALL_FUNCTION_VAR_KW n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);
|
||||||
|
break;
|
||||||
|
|
||||||
case MP_BC_CALL_METHOD:
|
case MP_BC_CALL_METHOD:
|
||||||
DECODE_UINT;
|
DECODE_UINT;
|
||||||
printf("CALL_METHOD n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);
|
printf("CALL_METHOD n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case MP_BC_CALL_METHOD_VAR:
|
||||||
|
DECODE_UINT;
|
||||||
|
printf("CALL_METHOD_VAR n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case MP_BC_CALL_METHOD_KW:
|
||||||
|
DECODE_UINT;
|
||||||
|
printf("CALL_METHOD_KW n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case MP_BC_CALL_METHOD_VAR_KW:
|
||||||
|
DECODE_UINT;
|
||||||
|
printf("CALL_METHOD_VAR_KW n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);
|
||||||
|
break;
|
||||||
|
|
||||||
case MP_BC_RETURN_VALUE:
|
case MP_BC_RETURN_VALUE:
|
||||||
printf("RETURN_VALUE");
|
printf("RETURN_VALUE");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue