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

Add quick impl for MP_BC_LOAD_CONST_BYTES which just creates qstr so far.

This is based on the fact that qstr so far behaves more like byte string
than like Unicode string (for example, "012"[0] returns 48 (int)).
parent fe8fb916
...@@ -115,6 +115,11 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t ** ...@@ -115,6 +115,11 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **
PUSH(rt_load_const_str(qstr)); // TODO PUSH(rt_load_const_str(qstr)); // TODO
break; break;
case MP_BC_LOAD_CONST_BYTES:
DECODE_QSTR;
PUSH(rt_load_const_str(qstr)); // TODO
break;
case MP_BC_LOAD_CONST_STRING: case MP_BC_LOAD_CONST_STRING:
DECODE_QSTR; DECODE_QSTR;
PUSH(rt_load_const_str(qstr)); PUSH(rt_load_const_str(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