Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
a9f5abd4
Commit
a9f5abd4
authored
Jan 17, 2014
by
Paul Sokolovsky
Browse files
Implement LOAD_CONST_INT (by dispatching to int object implementation).
parent
966879cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/vm.c
View file @
a9f5abd4
...
...
@@ -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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment