Dump few more bytecodes (based on attempt to run real-world code).
This commit is contained in:
parent
c4f98cba18
commit
4b919d0135
16
py/showbc.c
16
py/showbc.c
@ -58,6 +58,11 @@ void mp_show_byte_code(const byte *ip, int len) {
|
||||
printf("LOAD_CONST_SMALL_INT %d", (int)unum);
|
||||
break;
|
||||
|
||||
case MP_BC_LOAD_CONST_INT:
|
||||
DECODE_QSTR;
|
||||
printf("LOAD_CONST_INT %s", qstr_str(qstr));
|
||||
break;
|
||||
|
||||
/*
|
||||
case MP_BC_LOAD_CONST_DEC:
|
||||
DECODE_QSTR;
|
||||
@ -174,13 +179,9 @@ void mp_show_byte_code(const byte *ip, int len) {
|
||||
printf("POP_TOP");
|
||||
break;
|
||||
|
||||
/*
|
||||
case MP_BC_ROT_TWO:
|
||||
obj1 = sp[0];
|
||||
sp[0] = sp[1];
|
||||
sp[1] = obj1;
|
||||
printf("ROT_TWO");
|
||||
break;
|
||||
*/
|
||||
|
||||
case MP_BC_ROT_THREE:
|
||||
printf("ROT_THREE");
|
||||
@ -343,6 +344,11 @@ void mp_show_byte_code(const byte *ip, int len) {
|
||||
printf("RETURN_VALUE");
|
||||
break;
|
||||
|
||||
case MP_BC_RAISE_VARARGS:
|
||||
unum = *ip++;
|
||||
printf("RAISE_VARARGS " UINT_FMT, unum);
|
||||
break;
|
||||
|
||||
case MP_BC_YIELD_VALUE:
|
||||
printf("YIELD_VALUE");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user