-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
GH-98831: Typed stack effects, and more instructions converted #99764
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
34 commits
Select commit
Hold shift + click to select a range
6860ed7
Make BINARY_OP_INPLACE_ADD_UNICODE a legit super instruction
gvanrossum dcba32e
COMPARE_OP
gvanrossum 30cb8cd
COMPARE_OP_FLOAT_JUMP
gvanrossum 6af0a5d
COMPARE_OP_INT_JUMP
gvanrossum 039efbf
COMPARE_OP_STR_JUMP
gvanrossum 2fd8822
Support typed stack effects
gvanrossum 14bbd50
Refactor common code of analyze_{super,macro}
gvanrossum 00a2495
Reverse temporary variable numbering
gvanrossum f01dff5
STORE_ATTR
gvanrossum 71ee089
DELETE_ATTR
gvanrossum 966da1a
STORE_GLOBAL
gvanrossum 7c94591
STORE_ATTR_INSTANCE_VALUE
gvanrossum 2c76046
STORE_ATTR_WITH_HINT
gvanrossum d0f29f8
STORE_ATTR_SLOT, and complete the store_attr family
gvanrossum 001c418
Complete the store_subscr family: STORE_SUBSCR{,DICT,LIST_INT}
gvanrossum 05caa7e
DELETE_SUBSCR
gvanrossum 8d445ae
PRINT_EXPR
gvanrossum c1f3034
INTERPRETER_EXIT (a bit weird, ends in return)
gvanrossum e2f376b
RETURN_VALUE
gvanrossum 53c204e
GET_AITER (had to restructure it some)
gvanrossum e0ba8bf
Typo in TODO comment
gvanrossum f7a54d7
Emit PREDICT() macros right before DISPATCH()
gvanrossum 6ae9e6e
LIST_APPEND (a bit unhappy with it)
gvanrossum 34aa393
SET_ADD (also a bit unhappy with it)
gvanrossum e144db3
Move all cache effects to the front of the effects list
gvanrossum 029bf07
Rename _JUMP_ON_SIGN to _JUMP_IF
gvanrossum fa3135f
Change ERROR_IF(err != 0, ...) to ERROR_IF(err, ...)
gvanrossum 445f20b
Change ERROR_IF(1, ...) to ERROR_IF(true, ...)
gvanrossum 32b4ac0
Revert "Make BINARY_OP_INPLACE_ADD_UNICODE a legit super instruction"
gvanrossum 0ef4da7
Emit PEEKs in super/macro instructions in correct order
gvanrossum 7d19466
Use JUMPBY(n) instead of next_instr += n
gvanrossum 99e8ec6
Rename local variables type to typ
gvanrossum c08dbdb
Remove unused op names
gvanrossum c6dfeec
Merge branch 'main' into typed-stack-effects
gvanrossum 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
PRINT_EXPR
- Loading branch information
commit 8d445ae7a78d5a3411a7411e0c38c06b5d34e5a5
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
This took me a second to parse. Maybe it's worth adding another
ERROR(LABEL)
macro for unconditional errors?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.
The problem with
ERROR(error)
is that the generator would need to intercept that too (since possibly it needs to go to_pop_1_error
), and the intercept code is slightly hairy already. MaybeERROR_IF(true, error)
works? I'll try that.