-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-93143: Avoid NULL check in LOAD_FAST based on analysis in the compiler #93144
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
29 commits
Select commit
Hold shift + click to select a range
3627bb5
implement LOAD_FAST_KNOWN
sweeneyde ac0ad1b
fix leak and add stack effect
sweeneyde 721e6ed
add failing test
sweeneyde 42ef42f
Attempt exception handling
sweeneyde a8e94f8
Parameters are guaranteed to be initialized
sweeneyde 038a85d
revert to LOAD_FAST on lineno setter and LocalsToFast
sweeneyde 3243981
Port over superinstructions
sweeneyde 0ddc721
remove debugging code so non-debug builds work.
sweeneyde 35d2c51
merge with main
sweeneyde 9c74fe5
Rename to LOAD_FAST_CHECK
sweeneyde b7c689b
revert debugging code
sweeneyde 2c58c67
Add test cases
sweeneyde 8f58dd6
Fix test_dis
sweeneyde f32c419
switch the opcode numbers back
sweeneyde 1f14713
📜🤖 Added by blurb_it.
blurb-it[bot] f224e20
Don't access last instruction of empty basicblocks
8000
sweeneyde 5480a12
Merge branch 'known' of https://github.com/sweeneyde/cpython into known
sweeneyde b9da528
don't accidentally export symbols
sweeneyde 2b15f1c
add description to magic number bump, only bump by 1
sweeneyde 6feb63c
typo
sweeneyde 90de166
merge with main
sweeneyde 75ae65d
use 'instr' var again
sweeneyde 70e1ba8
rename, combine switch cases
sweeneyde a1d8b01
simplify the is-a-parameter logic
sweeneyde d193540
assert no extended args
sweeneyde 8aa1132
assert no superinstructions
sweeneyde 138eeaf
Mark unsafe except blocks of every instruction (with any oparg)
sweeneyde 202e1e7
Only add checks when deleting, not modifying, locals
sweeneyde d569c5f
Merge remote-tracking branch 'upstream/main' into known
sweeneyde 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
Rename to LOAD_FAST_CHECK
- Loading branch information
commit 9c74fe5b0aecd01ee3ed1b21fa6c74a4043d6d13
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.