Interface TruffleCompiler

All Known Subinterfaces:
HotSpotTruffleCompiler

public interface TruffleCompiler
A compiler that partially evaluates and compiles a TruffleCompilable to machine code.
  • Field Details

  • Method Details

    • initialize

      void initialize(TruffleCompilable compilable, boolean firstInitialization)
      Initializes the compiler before the first compilation.
      Parameters:
      compilable - the Truffle AST that triggered the initialization
      firstInitialization - first initialization. For a multi-isolate compiler the firstInitialization must be true for an initialization in the first isolate and false for an initialization in the following isolates.
      Since:
      20.0.0
    • doCompile

      void doCompile(TruffleCompilationTask task, TruffleCompilable compilable, TruffleCompilerListener listener)
      Compiles compilable to machine code.
      Parameters:
      listener - a listener receiving events about compilation success or failure
    • shutdown

      void shutdown()
      Notifies this object that it will no longer being used and should thus perform all relevant finalization tasks. This is typically performed when the process exits.