public interface TruffleCompiler
TruffleCompilable to machine code.| Modifier and Type | Field and Description |
|---|---|
static String |
FIRST_TIER_COMPILATION_SUFFIX |
static String |
SECOND_TIER_COMPILATION_SUFFIX |
| Modifier and Type | Method and Description |
|---|---|
void |
doCompile(TruffleCompilationTask task,
TruffleCompilable compilable,
TruffleCompilerListener listener)
Compiles
compilable to machine code. |
void |
initialize(TruffleCompilable compilable,
boolean firstInitialization)
Initializes the compiler before the first compilation.
|
void |
shutdown()
Notifies this object that it will no longer being used and should thus perform all relevant
finalization tasks.
|
static final String FIRST_TIER_COMPILATION_SUFFIX
static final String SECOND_TIER_COMPILATION_SUFFIX
void initialize(TruffleCompilable compilable, boolean firstInitialization)
compilable - the Truffle AST that triggered the initializationfirstInitialization - 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.void doCompile(TruffleCompilationTask task, TruffleCompilable compilable, TruffleCompilerListener listener)
compilable to machine code.listener - a listener receiving events about compilation success or failurevoid shutdown()