Class ProgramCounterSupplier

java.lang.Object
org.kink_lang.kink.internal.compile.javaclassir.ProgramCounterSupplier

public class ProgramCounterSupplier extends Object
Supplies program counters.
  • Constructor Details

    • ProgramCounterSupplier

      public ProgramCounterSupplier(TraceAccumulator traceAccum)
      Constructs a supplier.
      Parameters:
      traceAccum - the trace accumulator.
  • Method Details

    • newProgramCounter

      public int newProgramCounter(Trace trace)
      Supplies a new program counter with a trace.
      Parameters:
      trace - the trace associated with the program counter.
      Returns:
      the new program counter.