Commit 4b919d01 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Dump few more bytecodes (based on attempt to run real-world code).

parent c4f98cba
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment