public interface TruffleCompilationSupport
| Modifier and Type | Method and Description |
|---|---|
boolean |
compilerOptionExists(String key)
Returns
true if a compilation key exists, else false. |
TruffleCompiler |
createCompiler(TruffleCompilerRuntime runtime)
Creates a new compiler handle for compilation.
|
String |
getCompilerConfigurationName(TruffleCompilerRuntime runtime)
Returns a compiler configuration name that will be used.
|
default boolean |
isSuppressedCompilationFailure(Throwable throwable) |
TruffleCompilerOptionDescriptor[] |
listCompilerOptions()
Lists all compiler options available, including deprecated options.
|
default AutoCloseable |
openCompilerThreadScope()
Opens a compiler thread scope for compilation threads.
|
void |
registerRuntime(TruffleCompilerRuntime runtime)
Registers a runtime instance after it was fully initialized.
|
String |
validateCompilerOption(String key,
String value)
Validates a compiler option and returns
null if the option is null. |
void registerRuntime(TruffleCompilerRuntime runtime)
TruffleCompiler createCompiler(TruffleCompilerRuntime runtime)
registered prior to calling this method.
Only one compiler instance should be created per Truffle runtime instance.TruffleCompilerOptionDescriptor[] listCompilerOptions()
boolean compilerOptionExists(String key)
true if a compilation key exists, else false.String validateCompilerOption(String key, String value)
null if the option is null. An error
message otherwise.String getCompilerConfigurationName(TruffleCompilerRuntime runtime)
default AutoCloseable openCompilerThreadScope()
default boolean isSuppressedCompilationFailure(Throwable throwable)