Skip to content

Remove RETURN_CONST to allow static specialization of RETURN and LOAD_CONST bytecodesΒ #577

@markshannon

Description

@markshannon

With immortal objects and the desire to shrink code objects, we want to add LOAD_COMMON_CONST for loading None, True, etc.

The RETURN bytecodes do largely different things for generators and normal frames. It would make sense to split this into "normal" and "generator" returns.

The existence of RETURN_CONST prevents this, as we would need 4 versions of it to allow specialization of return for generator/normal frames and for normal/"common" const.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions