mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
GH-100982: Add COMPARE_AND_BRANCH instruction (GH-100983)
This commit is contained in:
parent
b1a74a182d
commit
7b14c2ef19
17 changed files with 273 additions and 245 deletions
|
|
@ -1043,6 +1043,15 @@ iterations of the loop.
|
|||
``cmp_op[opname]``.
|
||||
|
||||
|
||||
.. opcode:: COMPARE_AND_BRANCH (opname)
|
||||
|
||||
Compares the top two values on the stack, popping them, then branches.
|
||||
The direction and offset of the jump is embedded as a ``POP_JUMP_IF_TRUE``
|
||||
or ``POP_JUMP_IF_FALSE`` instruction immediately following the cache.
|
||||
|
||||
.. versionadded:: 3.12
|
||||
|
||||
|
||||
.. opcode:: IS_OP (invert)
|
||||
|
||||
Performs ``is`` comparison, or ``is not`` if ``invert`` is 1.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue