Skip to content

ZJIT: Specialize OPTIMIZED_METHOD_TYPE_CALL #865

@k0kubun

Description

@k0kubun

Currently, we don't specialize OPTIMIZED_METHOD_TYPE_CALL (e.g. Proc#call), and it shows up as fallback reasons on lobsters.

Under the def_type == VM_METHOD_TYPE_OPTIMIZED in hir.rs type_specialize, you can add a branch that checks for opt_type == OPTIMIZED_METHOD_TYPE_CALL, and build HIR that does something similar to YJIT's OPTIMIZED_METHOD_TYPE_CALL => { ... } block under gen_send_general, which calls rb_optimized_call.

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