Skip to content

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

Closed
@iritkatriel

Description

@iritkatriel

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

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions