Interface TruffleCompiler
- All Known Subinterfaces:
HotSpotTruffleCompiler
public interface TruffleCompiler
A compiler that partially evaluates and compiles a
TruffleCompilable to machine code.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddoCompile(TruffleCompilationTask task, TruffleCompilable compilable, TruffleCompilerListener listener) Compilescompilableto machine code.voidinitialize(TruffleCompilable compilable, boolean firstInitialization) Initializes the compiler before the first compilation.voidshutdown()Notifies this object that it will no longer being used and should thus perform all relevant finalization tasks.
-
Field Details
-
FIRST_TIER_COMPILATION_SUFFIX
- See Also:
-
SECOND_TIER_COMPILATION_SUFFIX
- See Also:
-
-
Method Details
-
initialize
Initializes the compiler before the first compilation.- Parameters:
compilable- the Truffle AST that triggered the initializationfirstInitialization- first initialization. For a multi-isolate compiler thefirstInitializationmust betruefor an initialization in the first isolate andfalsefor an initialization in the following isolates.- Since:
- 20.0.0
-
doCompile
void doCompile(TruffleCompilationTask task, TruffleCompilable compilable, TruffleCompilerListener listener) Compilescompilableto 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.
-