-
-
Notifications
You must be signed in to change notification settings - Fork 32k
GH-99005: Add CALL_INTRINSIC_1
instruction
#100771
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
14 commits
Select commit
Hold shift + click to select a range
4e1e4a3
Add CALL_INSTRINSIC_1 instruction, but don't use it yet.
markshannon f0eafa9
Remove PRINT_EXPR instruction, replacing it with CALL_INTRINSIC_1.
markshannon 8510861
Remove STOPITERATION_ERROR instruction, replacing it with CALL_INTRIN…
markshannon 6e99cc7
Remove IMPORT_STAR instruction, replacing it with CALL_INTRINSIC_1
markshannon 66d3ea4
Add news and update dis docs.
markshannon fcf2806
Fix issue number.
markshannon ed870bb
Merge branch 'main' into intrinsics
markshannon 9c6cbbc
Fix typo in project file.
markshannon c5ecb5f
Tidy up formatting.
markshannon 8bad358
Make error code checking consistent.
markshannon a39ac2b
Make CALL_INTRINSIC_1 a bit more robust
markshannon a0a4ba6
Document the operand of CALL_INTRINSIC_1
markshannon e42c99d
Update Lib/importlib/_bootstrap_external.py
markshannon abb24b9
Update generated_cases.c.h
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
#define INTRINSIC_PRINT 1 | ||
#define INTRINSIC_IMPORT_STAR 2 | ||
#define INTRINSIC_STOPITERATION_ERROR 3 | ||
|
||
#define MAX_INTRINSIC_1 3 | ||
|
||
typedef PyObject *(*instrinsic_func1)(PyThreadState* tstate, PyObject *value); | ||
|
||
extern instrinsic_func1 _PyIntrinsics_UnaryFunctions[]; |
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
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Core and Builtins/2023-01-05-13-54-00.gh-issue-99005.D7H6j4.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,4 @@ | ||
Add new :opcode:`CALL_INSTRINSIC_1` instruction. Remove | ||
:opcode:`IMPORT_STAR`, :opcode:`PRINT_EXPR` and | ||
:opcode:`STOPITERATION_ERROR`, replacing them with the | ||
:opcode:`CALL_INSTRINSIC_1` instruction. |
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.