-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-111520: Integrate the Tier 2 interpreter in the Tier 1 interpreter #111428
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
27 commits
Select commit
Hold shift + click to select a range
97984d3
Make all labels in _PyUopExecute end in _tier_two
gvanrossum 157a450
Control lltrace via PYTHON_LLTRACE=N
gvanrossum d1b9c1b
Rename PYTHONUOPS to PYTHON_UOPS for consistency
gvanrossum d805312
Integrate Tier 2 into _PyEval_EvalFrameDefault
gvanrossum e0e60ce
DO NOT MERGE: Always use -Xuops
gvanrossum a720f1a
Merge branch 'main' into mix-tiers
gvanrossum b808f6d
Merge branch 'main' into mix-tiers
gvanrossum a0aed59
Get rid of separate executor.c file
gvanrossum 75605c7
Most suggestions from Mark's code review
gvanrossum 5e84476
Fix test_generated_cases.py by stripping preprocessor prefix/suffix
gvanrossum 917b7a2
Eradicate executors.c from Windows build files
gvanrossum 9067eb0
Rename deoptimize_tier_two back to deoptimize (for Justin)
gvanrossum 6a4e495
Fix whitespace
gvanrossum 81f1883
Revert "DO NOT MERGE: Always use -Xuops"
gvanrossum ee27e73
Add blurb
gvanrossum 7ebc228
Add more color to the news blurb
gvanrossum a1d0108
Merge remote-tracking branch 'origin/main' into mix-tiers
gvanrossum a96ac7f
8000
Eliminate 'operand' local variable
gvanrossum e02409d
Rename self -> current_executor (TODO: eliminate it?)
gvanrossum fdf1a2f
Move `_EXIT_TRACE` logic to a separate label
gvanrossum 2a6450c
Limit infinite recursion in test_typing
gvanrossum 4783de3
Limit infinite recursion in test_fileio
gvanrossum b9516a1
Limit infinite recursion in test_xml_etree
gvanrossum 33c3fae
Limit infinite recursion in test_call
gvanrossum 998e054
Fix test_call better: adjust Py_C_RECURSION_LIMIT in pystate.h
gvanrossum 19d9d40
Revert unnecessary fixes to recursive tests
gvanrossum 03de1bf
Even better fix -- increase stack space on Windows in debug mode
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
Most suggestions from Mark's code review
- Remove CHECK_EVAL_BREAKER() from top of Tier 2 loop - Make Tier 2 default case Py_UNREACHABLE() in non-debug mode - GOTO_TIER_TWO() macro instead of `goto enter_tier_two` - Inline ip_offset (Tier 2 LOAD_IP() is now a no-op) - Move #define/#under TIER_ONE/TIER_TWO into generated .c.h files - ceval_macros.h defines Tier 1 macros, Tier 2 is inlined in ceval.c
- Loading branch information
commit 75605c7077da1e697615f4126daecbd0494b8f72
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
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
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 should have been set by
ENTER_EXECUTOR
.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.
Yes and no. It would mean that
next_uop
would have to be a local in the top-level function scope. I am trying to reduce the number of locals there. For now let me keep it this way. I expect that it will be fine even when we start stitching, because each trace can only be entered at the top and we need the executor (so that we can decref it upon exiting the trace). The initialnext_uop
is just the executor plus a fixed offset anyway.