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.
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
gh-111520: Integrate the Tier 2 interpreter in the Tier 1 interpreter #111428
gh-111520: Integrate the Tier 2 interpreter in the Tier 1 interpreter #111428
Changes from 5 commits
97984d3
157a450
d1b9c1b
d805312
e0e60ce
a720f1a
b808f6d
a0aed59
75605c7
5e84476
917b7a2
9067eb0
6a4e495
81f1883
ee27e73
7ebc228
a1d0108
a96ac7f
e02409d
fdf1a2f
2a6450c
4783de3
b9516a1
33c3fae
998e054
19d9d40
03de1bf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
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.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
.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.
We may not need to reset
return_offset
; we can also skip syncingstack_pointer
; so we could make this slightly faster as follows (but it doesn't matter since errors are presumed to be on the slow path):