py: Add more bytecodes to showbc.c.

This commit is contained in:
Damien George 2014-01-02 18:15:33 +00:00
parent f9168ba78b
commit 27bf5b829b

View File

@ -276,14 +276,10 @@ void mp_show_byte_code(const byte *ip, int len) {
printf("BUILD_LIST " UINT_FMT, unum); printf("BUILD_LIST " UINT_FMT, unum);
break; break;
/*
case MP_BC_LIST_APPEND: case MP_BC_LIST_APPEND:
DECODE_UINT; DECODE_UINT;
// I think it's guaranteed by the compiler that sp[unum] is a list printf("LIST_APPEND " UINT_FMT, unum);
rt_list_append(sp[unum], sp[0]);
sp++;
break; break;
*/
case MP_BC_BUILD_MAP: case MP_BC_BUILD_MAP:
DECODE_UINT; DECODE_UINT;
@ -343,16 +339,9 @@ void mp_show_byte_code(const byte *ip, int len) {
printf("RETURN_VALUE"); printf("RETURN_VALUE");
break; break;
/*
case MP_BC_YIELD_VALUE: case MP_BC_YIELD_VALUE:
nlr_pop(); printf("YIELD_VALUE");
*ip_in_out = ip; break;
fastn[0] = fast0;
fastn[1] = fast1;
fastn[2] = fast2;
*sp_in_out = sp;
return true;
*/
default: default:
printf("code %p, byte code 0x%02x not implemented\n", ip, op); printf("code %p, byte code 0x%02x not implemented\n", ip, op);