Add MAP_ADD opcode to VM.

pull/3/head
Damien 2013-10-16 20:54:01 +01:00
rodzic bd25445a82
commit 5fd09668b7
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -305,6 +305,13 @@ bool py_execute_byte_code_2(const byte *code, const byte **ip_in_out, py_obj_t *
rt_store_map(sp[0], sp[-2], sp[-1]);
break;
case PYBC_MAP_ADD:
DECODE_UINT;
// I think it's guaranteed by the compiler that sp[unum + 1] is a map
rt_store_map(sp[unum + 1], sp[0], sp[1]);
sp += 2;
break;
case PYBC_BUILD_SET:
DECODE_UINT;
obj1 = rt_build_set(unum, sp);