mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bpo-45923: Handle call events in bytecode (GH-30364)
* Add a RESUME instruction to handle "call" events.
This commit is contained in:
parent
3e43fac250
commit
e028ae99ec
13 changed files with 672 additions and 523 deletions
|
|
@ -1206,6 +1206,20 @@ All of the following opcodes use their arguments.
|
|||
.. versionadded:: 3.11
|
||||
|
||||
|
||||
.. opcode:: RESUME (where)
|
||||
|
||||
A no-op. Performs internal tracing, debugging and optimization checks.
|
||||
|
||||
The ``where`` operand marks where the ``RESUME`` occurs:
|
||||
|
||||
* ``0`` The start of a function
|
||||
* ``1`` After a ``yield`` expression
|
||||
* ``2`` After a ``yield from`` expression
|
||||
* ``3`` After an ``await`` expression
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
|
||||
.. opcode:: HAVE_ARGUMENT
|
||||
|
||||
This is not really an opcode. It identifies the dividing line between
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue