Module org.kink_lang.kink
Class TraceBootstrapper
java.lang.Object
org.kink_lang.kink.internal.compile.bootstrap.TraceBootstrapper
Bootstrap methods to create traces.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CallSite
bootstrapFakeCallCse
(MethodHandles.Lookup caller, String name, MethodType type, int key) Bootstrap FakeCallTraceCse constant.static CallSite
bootstrapTrace
(MethodHandles.Lookup caller, String name, MethodType type, int key) Bootstrap constant traceMap.get(key).get().
-
Method Details
-
bootstrapTrace
public static CallSite bootstrapTrace(MethodHandles.Lookup caller, String name, MethodType type, int key) throws Throwable Bootstrap constant traceMap.get(key).get().- Parameters:
caller
- the lookup of the caller.name
- unused.type
- ()Trace.key
- the key of traceMap.- Returns:
- the constant call site of a constant trace.
- Throws:
Throwable
- any throwable.
-
bootstrapFakeCallCse
public static CallSite bootstrapFakeCallCse(MethodHandles.Lookup caller, String name, MethodType type, int key) throws Throwable Bootstrap FakeCallTraceCse constant. Avoiding condy because of JDK-8280473.- Parameters:
caller
- the lookup of the caller.name
- unused.type
- ()FakeCallTraceCse.key
- the key of traceMap.- Returns:
- a constant call site of constant FakeCallTraceCse.
- Throws:
Throwable
- any throwable.
-