8000 GH-111848: Set the IP when de-optimizing by markshannon · Pull Request #112065 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-111848: Set the IP when de-optimizing #112065

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 14 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into jumps-to-deopts
  • Loading branch information
markshannon committed Nov 11, 2023
commit 2de345197e62b29b71c19644d0ec1c48cfe3b667
29 changes: 15 additions & 14 deletions Include/internal/pycore_opcode_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 3 additions & 10 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -4007,19 +4007,12 @@ dummy_func(
}

op (_GUARD_IS_NONE_POP, (val -- )) {
if (!Py_IsNone(val)) {
Py_DECREF(val);
DEOPT_IF(true);
}
DEOPT_IF(!Py_IsNone(val));
}

op (_GUARD_IS_NOT_NONE_POP, (val -- )) {
if (Py_IsNone(val)) {
DEOPT_IF(true);
}
else {
Py_DECREF(val);
}
DEOPT_IF(Py_IsNone(val));
Py_DECREF(val);
}

op(_JUMP_TO_TOP, (--)) {
Expand Down
13 changes: 3 additions & 10 deletions Python/executor_cases.c.h
44AC

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

You are viewing a condensed version of this merge commit. You can view the full changes here.
0