Skip to content

Use borrowed references for LOAD_CONST #134282

@markshannon

Description

@markshannon

Feature or enhancement

Proposal:

We now support borrowed (tagged) references on the stack. Like LOAD_FAST_BORROW we can use borrowed references in LOAD_CONST as the value in the constants array is guaranteed to outlive any variables in the frame.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions