Skip to content

ZJIT: Inline Array#first and Array#last #1052

Description

@k0kubun

We currently just make a C call for Array#first and Array#last on InvokeBuiltin. We could implement their logic in more specialized HIR, which adds for opportunities for the optimizer and makes escape analysis on arrays easier in the future.

This is something that is discovered as part of #1020.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions