8000 GH-100923: Embed jump mask in `COMPARE_OP` oparg by markshannon · Pull Request #100924 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-100923: Embed jump mask in COMPARE_OP oparg #100924

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 10 commits into from
Jan 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
8000
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Python/compile.c
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
  • Loading branch information
markshannon and iritkatriel authored Jan 11, 2023
commit 03d9c6568ad2f58e10730d6e581b4e8811e619c0
3 changes: 2 additions & 1 deletion Python/compile.c
8000
Original file line number Diff line number Diff line change
Expand Up @@ -2887,7 +2887,8 @@ static int compiler_addcompare(struct compiler *c, location loc,
default:
Py_UNREACHABLE();
}
/* cmp goes in top bits of the oparg, low bits are for the mask. */
/* cmp goes in top bits of the oparg, while the low bits are used by specialized
* versions of this opcode to store the comparison mask. */
ADDOP_I(c, loc, COMPARE_OP, cmp << 4);
return SUCCESS;
}
Expand Down
0