Class InputClassProbeAsmGenerator

java.lang.Object
org.ek9lang.compiler.backend.jvm.AbstractAsmGenerator
org.ek9lang.compiler.backend.jvm.InputClassProbeAsmGenerator
All Implemented Interfaces:
Consumer<InputClassProbeInstr>, org.objectweb.asm.Opcodes

final class InputClassProbeAsmGenerator extends AbstractAsmGenerator implements Consumer<InputClassProbeInstr>, org.objectweb.asm.Opcodes
Specialised ASM generator for InputClassProbeInstr — the input-variation numerator probe (design EK9_INPUT_VARIATION_METRIC_DESIGN.md §5).

Unlike the coverage / profiling probes (which push only a long id), this probe loads the live argument objects at construct entry and hands each to the runtime classifier, which places the value into its ValueClassId leaf cell for the dynamic numerator.

Generated bytecode pattern — one call per argument:

LDC constructFqn                                  (push String)
LDC paramIndex                                    (push int)
ALOAD argSlot                                     (push the live argument object)
INVOKESTATIC org/ek9/lang/InputVarietyRuntime.recordArg(Ljava/lang/String;ILorg/ek9/lang/Any;)V