Commit a9f5abd4 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Implement LOAD_CONST_INT (by dispatching to int object implementation).

parent 966879cf
...@@ -109,6 +109,11 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t ** ...@@ -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)); PUSH(MP_OBJ_NEW_SMALL_INT(unum));
break; 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: case MP_BC_LOAD_CONST_DEC:
DECODE_QSTR; DECODE_QSTR;
PUSH(rt_load_const_dec(qstr)); PUSH(rt_load_const_dec(qstr));
......
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