Skip to content

GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack depth.#92960

Merged
markshannon merged 2 commits into
python:mainfrom
faster-cpython:yield-oparg-depth
May 19, 2022
Merged

GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack depth.#92960
markshannon merged 2 commits into
python:mainfrom
faster-cpython:yield-oparg-depth

Conversation

@markshannon
Copy link
Copy Markdown
Member

@markshannon markshannon commented May 19, 2022

A small change. Sets the oparg of YIELD_VALUE to be the stack depth.
This is an enabler of faster-cpython/ideas#111 (comment)
It does have some merit by itself, as an additional sanity check for debug builds.

@markshannon markshannon merged commit 3fd8610 into python:main May 19, 2022
@markshannon markshannon deleted the yield-oparg-depth branch September 26, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants