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)).
genexit-inst
Paul Sokolovsky 2014-01-02 18:46:27 +02:00
parent fe8fb9165c
commit bdf822b3d8
1 changed files with 5 additions and 0 deletions

View File

@ -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
break;
case MP_BC_LOAD_CONST_BYTES:
DECODE_QSTR;
PUSH(rt_load_const_str(qstr)); // TODO
break;
case MP_BC_LOAD_CONST_STRING:
DECODE_QSTR;
PUSH(rt_load_const_str(qstr));