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
5fd09668
Commit
5fd09668
authored
Oct 16, 2013
by
Damien
Browse files
Add MAP_ADD opcode to VM.
parent
bd25445a
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/vm.c
View file @
5fd09668
...
...
@@ -305,6 +305,13 @@ bool py_execute_byte_code_2(const byte *code, const byte **ip_in_out, py_obj_t *
rt_store_map
(
sp
[
0
],
sp
[
-
2
],
sp
[
-
1
]);
break
;
case
PYBC_MAP_ADD
:
DECODE_UINT
;
// I think it's guaranteed by the compiler that sp[unum + 1] is a map
rt_store_map
(
sp
[
unum
+
1
],
sp
[
0
],
sp
[
1
]);
sp
+=
2
;
break
;
case
PYBC_BUILD_SET
:
DECODE_UINT
;
obj1
=
rt_build_set
(
unum
,
sp
);
...
...
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