Skip to content

ZJIT: Support InvokeSuper from within a block #993

Description

@XrXr

See ruby#16121, where we start to refuse specializing super from within blocks.

Finding the active method from within a block requires dynamically looping over all EP levels terminating at the VM_ENV_LOCAL_P level. The loop can be in HIR, LIR, or in a helper function we call at runtime. It seems HIR can do the best job optimizing the loop because some EP levels may happen to be available already, in context. (The loop has a statically known upper bound on the number of iterations)

Also ref: ruby#17347

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions