Skip to content
Snippets Groups Projects
Commit a9f5abd4 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Implement LOAD_CONST_INT (by dispatching to int object implementation).

parent 966879cf
No related branches found
No related tags found
No related merge requests found
...@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment