Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
86b3db9c
Commit
86b3db9c
authored
8 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
tests/cmdline/cmd_showbc: Update to work with recent changes.
parent
4d2bab14
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/cmdline/cmd_showbc.py.exp
+20
-26
20 additions, 26 deletions
tests/cmdline/cmd_showbc.py.exp
with
20 additions
and
26 deletions
tests/cmdline/cmd_showbc.py.exp
+
20
−
26
View file @
86b3db9c
...
...
@@ -175,14 +175,12 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
\\d\+ LOAD_FAST 15
\\d\+ MAKE_CLOSURE \.\+ 2
\\d\+ LOAD_FAST 2
\\d\+ GET_ITER
\\d\+ CALL_FUNCTION n=1 nkw=0
\\d\+ STORE_FAST 0
\\d\+ LOAD_FAST 14
\\d\+ LOAD_FAST 15
\\d\+ MAKE_CLOSURE \.\+ 2
\\d\+ LOAD_FAST 2
\\d\+ GET_ITER
\\d\+ CALL_FUNCTION n=1 nkw=0
\\d\+ STORE_FAST 0
\\d\+ LOAD_FAST 0
...
...
@@ -461,18 +459,16 @@ arg names: * * *
(N_EXC_STACK 0)
bc=-\\d\+ line=1
00 BUILD_LIST 0
02 LOAD_NULL
03 LOAD_FAST 2
04 LOAD_NULL
05 LOAD_NULL
06 FOR_ITER 22
09 STORE_FAST 3
10 LOAD_DEREF 1
12 POP_JUMP_IF_FALSE 6
15 LOAD_DEREF 0
17 STORE_COMP 20
19 JUMP 6
22 RETURN_VALUE
02 LOAD_FAST 2
03 GET_ITER_STACK
04 FOR_ITER 20
07 STORE_FAST 3
08 LOAD_DEREF 1
10 POP_JUMP_IF_FALSE 4
13 LOAD_DEREF 0
15 STORE_COMP 20
17 JUMP 4
20 RETURN_VALUE
File cmdline/cmd_showbc.py, code block '<dictcomp>' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
...
...
@@ -483,19 +479,17 @@ arg names: * * *
bc=-\\d\+ line=1
########
00 BUILD_MAP 0
02 LOAD_NULL
03 LOAD_FAST 2
04 LOAD_NULL
05 LOAD_NULL
06 FOR_ITER 24
09 STORE_FAST 3
10 LOAD_DEREF 1
12 POP_JUMP_IF_FALSE 6
02 LOAD_FAST 2
03 GET_ITER_STACK
04 FOR_ITER 22
07 STORE_FAST 3
08 LOAD_DEREF 1
10 POP_JUMP_IF_FALSE 4
13 LOAD_DEREF 0
15 LOAD_DEREF 0
17 LOAD_DEREF 0
19 STORE_COMP 25
21 JUMP 6
24 RETURN_VALUE
17 STORE_COMP 25
19 JUMP 4
22 RETURN_VALUE
File cmdline/cmd_showbc.py, code block 'closure' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment