Class ProfilingEntryAsmGenerator

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

final class ProfilingEntryAsmGenerator extends AbstractAsmGenerator implements Consumer<ProfilingEntryInstr>, org.objectweb.asm.Opcodes
Specialized ASM generator for ProfilingEntryInstr processing.

Generates bytecode to record function entry by calling ProfilingRuntime.enterFunction(long functionId). Each function has a globally unique ID (FNV-1a hash), reused from the coverage infrastructure.

Generated bytecode pattern (2 instructions per probe):

LDC2_W functionId                          (push long constant)
INVOKESTATIC org/ek9/lang/ProfilingRuntime.enterFunction(J)V