Skip to content

ZJIT: Inline SendDirect callees that receive a &proc block arg #1068

Description

@dak2

ruby#18180 specializes foo(&proc) into SendDirect with BlockHandler::BlockArgProc, but the inliner skips these calls.

To support them, PushInlineFrame needs to write the proc as the inlined frame's specval (for yield / block_given?), and defined?(yield) folding needs to treat the Proc as a present block (it currently checks only blockiseq).

ruby#18180 (comment)

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