Class LabelInstrAsmGenerator

java.lang.Object
org.ek9lang.compiler.backend.jvm.AbstractAsmGenerator
org.ek9lang.compiler.backend.jvm.LabelInstrAsmGenerator
All Implemented Interfaces:
Consumer<LabelInstr>

final class LabelInstrAsmGenerator extends AbstractAsmGenerator implements Consumer<LabelInstr>
Specialized ASM generator for LabelInstr processing. Handles LABEL operations - marks instruction positions as branch targets for control flow operations like BRANCH_TRUE, BRANCH_FALSE, and BRANCH.
  • Constructor Details

  • Method Details

    • accept

      public void accept(LabelInstr labelInstr)
      Generate JVM label placement for a label instruction. Uses the label cache in MethodContext to ensure the same JVM Label object is used for both label definition and branch targets.
      Specified by:
      accept in interface Consumer<LabelInstr>