py: Temporary fix for bug where not enough VM state is allocated.

This commit is contained in:
Damien George
2014-01-19 01:14:37 +00:00
parent ebde0b8a09
commit e02b2d4391
2 changed files with 6 additions and 12 deletions

View File

@@ -206,25 +206,15 @@ void mp_show_byte_code(const byte *ip, int len) {
printf("POP_JUMP_IF_FALSE " UINT_FMT, ip + unum - ip_start);
break;
/*
case MP_BC_JUMP_IF_TRUE_OR_POP:
DECODE_SLABEL;
if (rt_is_true(*sp)) {
ip += unum;
} else {
sp++;
}
printf("JUMP_IF_TRUE_OR_POP " UINT_FMT, ip + unum - ip_start);
break;
case MP_BC_JUMP_IF_FALSE_OR_POP:
DECODE_SLABEL;
if (rt_is_true(*sp)) {
sp++;
} else {
ip += unum;
}
printf("JUMP_IF_FALSE_OR_POP " UINT_FMT, ip + unum - ip_start);
break;
*/
case MP_BC_SETUP_EXCEPT:
DECODE_ULABEL; // except labels are always forward