-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-46329: Split calls into precall and call instructions. #30855
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
markshannon
merged 45 commits into
python:main
from
faster-cpython:split-calls-into-precall-and-call-part-2
Jan 28, 2022
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
bd00f82
Add PRECALL_FUNCTION opcode.
markshannon 78e6da5
Move all call-shape variables into a struct.
markshannon 42c0460
Move 'call shape' varaibles into struct.
markshannon a947bf1
Replace CALL_NO_KW and CALL_KW with KW_NAMES and CALL instructions.
markshannon dbab710
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon f47f8a1
Remove named_args from call_shape struct.
markshannon 7ea553f
Handle bound-methods in PRECALL instructions.
markshannon 0b52de2
Restore specialization of calls to builtin functions.
markshannon d2e5834
Get specialized versions of CALL working again.
markshannon 6785a3b
Fix test_dis
markshannon 5935a5c
Fix a couple of compiler warnings.
markshannon e39432f
Specialize for calls to builtin types with any number of arguments.
markshannon 637f5e0
Refine fail stats for calls to classes.
markshannon 28663f4
Refine fail stats for calls.
markshannon 0239c26
Specialize for calls to method-descriptors of the shape obj.meth()
markshannon e076297
Refine fail stats for calls.
markshannon d74939c
Factor out bound-method handling code.
markshannon 1294c5e
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon 3323b3b
Specialize for builtin methods taking using the METH_FASTCALL | METH_…
markshannon 32dbf1a
Allow kwnames for specialized calls to builtin types.
markshannon bdf9f15
Specialize calls to tuple() and str().
markshannon c285be8
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon 918b390
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon a77e63e
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon cb5301d
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon 100a5f6
Fix test_dis
markshannon 4c2da8b
Fix specialization of method descriptors.
markshannon a7d7b1e
Move check for bound-methods from PRECALL opcodes back to CALL opcode.
markshannon 43fdcdf
Relax check in CALL_NO_KW_LIST_APPEND to any list subclass.
markshannon 5d35ce3
Correct name of CallShape field.
markshannon 639adb8
Add news item.
markshannon 6914240
Minor tidy ups.
markshannon 3478c55
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon 2cb70ad
Fix typos in news item.
markshannon 61ef1b4
Address review comments.
markshannon 4035699
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon 38ebe7c
Update docs for new opcodes.
markshannon ddc2f57
Fix up formatting
markshannon 28a810d
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon d4f710c
Fix up test_dis
markshannon 2fa70a0
Address review comments.
markshannon 2b59fc9
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon 5cb8d58
Merge branch 'main' into split-calls-into-precall-and-call-part-2
markshannon bd77c5d
Clarify ownership of callable in CallShape.
markshannon 3ac2ed8
Fix comment.
markshannon 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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.