Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make it possible to specify flags for pseudo instructions defined in bytecodes.c #112519

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

Closed
iritkatriel opened this issue Nov 29, 2023 · 0 comments · Fixed by #112520
Closed

Make it possible to specify flags for pseudo instructions defined in bytecodes.c #112519

iritkatriel opened this issue Nov 29, 2023 · 0 comments · Fixed by #112520
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@iritkatriel
Copy link
Member

iritkatriel commented Nov 29, 2023

The instruction metadata is incorrect for some of the pseudo instructions. For instance, these map to NOP, and take their metadata from it, but they should have the HAS_ARG flag set.

  [SETUP_FINALLY] = { true, 0, 0 },
  [SETUP_CLEANUP] = { true, 0, 0 },
  [SETUP_WITH] = { true, 0, 0 },

We need to be able to specify flags for pseudo instructions in bytecodes.c (and relax assertions that it is identical to the target flags).

Linked PRs

@iritkatriel iritkatriel added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Nov 29, 2023
@iritkatriel iritkatriel self-assigned this Nov 29, 2023
iritkatriel added a commit that referenced this issue Nov 30, 2023
aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
1 participant