Skip to content

ZJIT: Specialize invokesuper #864

@k0kubun

Description

@k0kubun

We don't specialize invokesuper at all, but we should.

  1. Profile invokesuper. Consider adding counters for its most frequent method types (ISEQ, cfunc, ...)
  2. Specialize the most frequent method type. It needs to resolve cme differently, but other parts would look similar to existing instructions.
    • If it's ISEQ, it can be implemented like Insn::SendWithoutBlockDirect.
    • If it's cfunc, it can be implemented as CCall/CCallVariadic.
    • See also: YJIT's gen_invokesuper_specialized

Metadata

Metadata

Assignees

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