-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
bpo-26280: Port BINARY_SUBSCR to PEP 659 adaptive interpreter #27043
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 all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
ed1b0f4
bpo-26280: Port BINARY_SUBSCR to PEP 659 adaptive interpreter
iritkatriel 99219b0
POP() -->STACK_SHRINK(1)
iritkatriel f051c19
revert change to MAGIC_NUMBER
iritkatriel 6401da8
add STAT_INCs
iritkatriel 95f85d2
use unchecked GET_ITEM
iritkatriel f6337be
add SPECIALIZATION_FAIL stats
iritkatriel dc45cac
print BINARY_SUBSCR stats
iritkatriel 09f8c50
fix SPECIALIZATION_FAIL
iritkatriel 1efce2e
optimise bytemode implementations
iritkatriel d32bfc9
more precise opcode and label names. Added (currently redundant) goto…
iritkatriel ccaea79
remove redundant null check
iritkatriel b40bfb7
check container type more efficiently
iritkatriel 61fa932
use oparg as the adaptive cache counter for BINARY_SUBSCR
iritkatriel 289f7be
avoid PyLong_AsSsize_t for index bounds check
iritkatriel 2f4d359
update Python/importlib_external.h
iritkatriel 1a2c302
📜🤖 Added by blurb_it.
blurb-it[bot] 5b2e3f9
revert change to adptive cache functions api
iritkatriel 4f909d6
add missing include
iritkatriel a863a3d
added UPDATE_PREV_INSTR_OPARG macro and use it to control the oparg c…
iritkatriel c30a188
use the full weird sign check
iritkatriel d5b0f32
revert unintended change to magic number
iritkatriel a9c9851
update Python/importlib_external.h
iritkatriel 19cdf02
_Size --> _GET_SIZE
iritkatriel 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
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.
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
9 changes: 9 additions & 0 deletions
9
Misc/NEWS.d/next/Core and Builtins/2021-07-14-10-31-10.bpo-26280.cgpM4B.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Implement adaptive specialization for BINARY_SUBSCR | ||
|
||
Three specialized forms of BINARY_SUBSCR are added: | ||
|
||
* BINARY_SUBSCR_LIST_INT | ||
|
||
* BINARY_SUBSCR_TUPLE_INT | ||
|
||
* BINARY_SUBSCR_DICT |
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.
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.
👍