mirror of
https://github.com/python/cpython.git
synced 2025-10-07 15:42:02 +00:00
GH-100923: Embed jump mask in COMPARE_OP
oparg (GH-100924)
This commit is contained in:
parent
61f12b8ff7
commit
6e4e14d98f
12 changed files with 200 additions and 177 deletions
|
@ -2887,7 +2887,9 @@ static int compiler_addcompare(struct compiler *c, location loc,
|
|||
default:
|
||||
Py_UNREACHABLE();
|
||||
}
|
||||
ADDOP_I(c, loc, COMPARE_OP, cmp);
|
||||
/* cmp goes in top bits of the oparg, while the low bits are used by quickened
|
||||
* versions of this opcode to store the comparison mask. */
|
||||
ADDOP_I(c, loc, COMPARE_OP, cmp << 4);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue