Skip to content

Use borrowed references for LOAD_CONST #134282

Closed

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

Activity

  1. added
    type-feature
    on May 19, 2025
  2. added
    interpreter-core
    on May 19, 2025
  3. added a commit that references this issue on May 20, 2025
  4. added a commit that references this issue on May 26, 2025
  5. added a commit that references this issue on Jul 12, 2025
  6. added a commit that references this issue on Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-coretype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions