-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
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
Move
_EXIT_TRACE
logic to a separate label
Using `GOTO_TIER_ONE()` macro. This should make things simpler for Justin.
- Loading branch information
commit fdf1a2fc6d628a3a21df4b9be4ffb84cca46185f
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.
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.
Can't this be shared with tier 1? Unwinding should work the same.
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.
Alas, not quite. The debug output is different, the stats collection is different, but most importantly, we need to
DECREF(self)
here before jumping to error.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.
Also we need to set
next_instr = frame->instr_ptr
.