Class LibGraalTruffleCompilationSupport

java.lang.Object
com.oracle.truffle.runtime.hotspot.libgraal.LibGraalTruffleCompilationSupport
All Implemented Interfaces:
com.oracle.truffle.compiler.TruffleCompilationSupport

public final class LibGraalTruffleCompilationSupport extends Object implements com.oracle.truffle.compiler.TruffleCompilationSupport
Represents a truffle compilation bundling compilable and task into a single object. Also installs the TTY filter to forward log messages to the truffle runtime.
  • Constructor Details

    • LibGraalTruffleCompilationSupport

      public LibGraalTruffleCompilationSupport()
  • Method Details

    • initializeIsolate

      public static void initializeIsolate(long isolateThreadId)
    • getCompilerConfigurationName

      public String getCompilerConfigurationName(com.oracle.truffle.compiler.TruffleCompilerRuntime runtime)
      Specified by:
      getCompilerConfigurationName in interface com.oracle.truffle.compiler.TruffleCompilationSupport
    • createCompiler

      public com.oracle.truffle.compiler.TruffleCompiler createCompiler(com.oracle.truffle.compiler.TruffleCompilerRuntime runtime)
      Specified by:
      createCompiler in interface com.oracle.truffle.compiler.TruffleCompilationSupport
    • registerRuntime

      public void registerRuntime(com.oracle.truffle.compiler.TruffleCompilerRuntime runtime)
      Specified by:
      registerRuntime in interface com.oracle.truffle.compiler.TruffleCompilationSupport
    • listCompilerOptions

      public com.oracle.truffle.compiler.TruffleCompilerOptionDescriptor[] listCompilerOptions()
      Specified by:
      listCompilerOptions in interface com.oracle.truffle.compiler.TruffleCompilationSupport
    • validateCompilerOption

      public String validateCompilerOption(String key, String value)
      Specified by:
      validateCompilerOption in interface com.oracle.truffle.compiler.TruffleCompilationSupport
    • compilerOptionExists

      public boolean compilerOptionExists(String key)
      Specified by:
      compilerOptionExists in interface com.oracle.truffle.compiler.TruffleCompilationSupport
    • openCompilerThreadScope

      public AutoCloseable openCompilerThreadScope()
      Specified by:
      openCompilerThreadScope in interface com.oracle.truffle.compiler.TruffleCompilationSupport
    • isSuppressedCompilationFailure

      public boolean isSuppressedCompilationFailure(Throwable throwable)
      Specified by:
      isSuppressedCompilationFailure in interface com.oracle.truffle.compiler.TruffleCompilationSupport
    • getCompilerVersion

      public String getCompilerVersion()
      Specified by:
      getCompilerVersion in interface com.oracle.truffle.compiler.TruffleCompilationSupport