Implement LOAD_CONST_INT (by dispatching to int object implementation).

This commit is contained in:
Paul Sokolovsky 2014-01-17 19:51:46 +02:00
parent 966879cf59
commit a9f5abd48c
1 changed files with 5 additions and 0 deletions

View File

@ -109,6 +109,11 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **
PUSH(MP_OBJ_NEW_SMALL_INT(unum));
break;
case MP_BC_LOAD_CONST_INT:
DECODE_QSTR;
PUSH(mp_obj_new_int_from_long_str(qstr_str(qstr)));
break;
case MP_BC_LOAD_CONST_DEC:
DECODE_QSTR;
PUSH(rt_load_const_dec(qstr));