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
4b919d01
Commit
4b919d01
authored
Jan 10, 2014
by
Paul Sokolovsky
Browse files
Dump few more bytecodes (based on attempt to run real-world code).
parent
c4f98cba
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/showbc.c
View file @
4b919d01
...
...
@@ -58,6 +58,11 @@ void mp_show_byte_code(const byte *ip, int len) {
printf
(
"LOAD_CONST_SMALL_INT %d"
,
(
int
)
unum
);
break
;
case
MP_BC_LOAD_CONST_INT
:
DECODE_QSTR
;
printf
(
"LOAD_CONST_INT %s"
,
qstr_str
(
qstr
));
break
;
/*
case MP_BC_LOAD_CONST_DEC:
DECODE_QSTR;
...
...
@@ -174,13 +179,9 @@ void mp_show_byte_code(const byte *ip, int len) {
printf
(
"POP_TOP"
);
break
;
/*
case
MP_BC_ROT_TWO
:
obj1 = sp[0];
sp[0] = sp[1];
sp[1] = obj1;
printf
(
"ROT_TWO"
);
break
;
*/
case
MP_BC_ROT_THREE
:
printf
(
"ROT_THREE"
);
...
...
@@ -343,6 +344,11 @@ void mp_show_byte_code(const byte *ip, int len) {
printf
(
"RETURN_VALUE"
);
break
;
case
MP_BC_RAISE_VARARGS
:
unum
=
*
ip
++
;
printf
(
"RAISE_VARARGS "
UINT_FMT
,
unum
);
break
;
case
MP_BC_YIELD_VALUE
:
printf
(
"YIELD_VALUE"
);
break
;
...
...
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