Class ProfilingExitAsmGenerator

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

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

Generates bytecode to record function exit by calling ProfilingRuntime.exitFunction(long functionId). The runtime computes elapsed time and accumulates timing data.

Generated bytecode pattern (2 instructions per probe):

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