Module org.kink_lang.kink
Class TraceAccumulator
java.lang.Object
org.kink_lang.kink.internal.compile.javaclassir.TraceAccumulator
Accumulates trace for compilation.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TraceAccumulator
public TraceAccumulator()
-
-
Method Details
-
add
Adds the trace with a unique key, which cannot be a program counter.If the trace already exists in the mapping, the key is reused.
- Parameters:
trace
- trace to add.- Returns:
- the key associated with the trace.
-
put
Associates the trace with the key.- Parameters:
key
- the key.trace
- the trace.
-
traces
Returns the result map.- Returns:
- the result map.
-