-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Align opcode names in dis
#6526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9b67d41
opcodes dis repr like cpython. POP-> POP_TOP
ShaharNaveh ea875f8
Adjust frame.rs
ShaharNaveh 5a816bb
Fix codegen
ShaharNaveh 01dd81a
snapshots
ShaharNaveh 2e220f9
Add doc for `PopTop`
ShaharNaveh e5abd45
fix jit
ShaharNaveh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
opcodes dis repr like cpython. POP-> POP_TOP
- Loading branch information
commit 9b67d416748e7eb129f7de4c85737aa913492f46
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there reason to change the convention?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Some tests are checking for the presents/absent of certain opcodes by name like:
RustPython/Lib/test/test_compile.py
Lines 1073 to 1081 in 61ddd98
And pretty much all tests under
test_dis.py(which we have a VERY outdated version of ATM), aligning the names of the opcodes just increases our test coverage