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
27bf5b82
Commit
27bf5b82
authored
Jan 02, 2014
by
Damien George
Browse files
py: Add more bytecodes to showbc.c.
parent
f9168ba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/showbc.c
View file @
27bf5b82
...
...
@@ -276,14 +276,10 @@ void mp_show_byte_code(const byte *ip, int len) {
printf
(
"BUILD_LIST "
UINT_FMT
,
unum
);
break
;
/*
case
MP_BC_LIST_APPEND
:
DECODE_UINT
;
// I think it's guaranteed by the compiler that sp[unum] is a list
rt_list_append(sp[unum], sp[0]);
sp++;
printf
(
"LIST_APPEND "
UINT_FMT
,
unum
);
break
;
*/
case
MP_BC_BUILD_MAP
:
DECODE_UINT
;
...
...
@@ -343,16 +339,9 @@ void mp_show_byte_code(const byte *ip, int len) {
printf
(
"RETURN_VALUE"
);
break
;
/*
case
MP_BC_YIELD_VALUE
:
nlr_pop();
*ip_in_out = ip;
fastn[0] = fast0;
fastn[1] = fast1;
fastn[2] = fast2;
*sp_in_out = sp;
return true;
*/
printf
(
"YIELD_VALUE"
);
break
;
default:
printf
(
"code %p, byte code 0x%02x not implemented
\n
"
,
ip
,
op
);
...
...
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