Repository navigation
GH-128375: Better instrument for FOR_ITER
#128445
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
Changes from 1 commit
76b9b3e
182c512
59bedbd
29da92e
511733c
592e328
6b903b3
1c38d89
cbe6c7c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…ave the IP to frame->instr_ptr
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -226,6 +226,7 @@ def choice(*opts: str) -> str: | |
| "replicate", | ||
| "tier1", | ||
| "tier2", | ||
| "no_save_ip", | ||
| } | ||
|
|
||
| __all__ = [] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,7 @@ | |
| "PASSTHROUGH", | ||
| "OPARG_AND_1", | ||
| "ERROR_NO_POP", | ||
| "NO_SAVE_IP", | ||
| ] | ||
|
|
||
|
|
||
|
|
||
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 we just teach
POP_ITERto look atprev_instr-1?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.
prev_instris the previously executed instruction, which is probably not the previous instruction in the code.There is no way for
POP_ITERto tell where the jump came from if we overwriteframe->instr_ptr