Class TraceBootstrapper

java.lang.Object
org.kink_lang.kink.internal.compile.bootstrap.TraceBootstrapper

public final class TraceBootstrapper extends Object
Bootstrap methods to create traces.
  • 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.