Interface TruffleCompilationSupport
public interface TruffleCompilationSupport
Represents entry points for Truffle runtime implementations to Truffle compilation.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif a compilation key exists, elsefalse.createCompiler(TruffleCompilerRuntime runtime) Creates a new compiler handle for compilation.Returns a compiler configuration name that will be used.default Stringdefault booleanisSuppressedCompilationFailure(Throwable throwable) Lists all compiler options available, including deprecated options.default AutoCloseableOpens a compiler thread scope for compilation threads.voidregisterRuntime(TruffleCompilerRuntime runtime) Registers a runtime instance after it was fully initialized.validateCompilerOption(String key, String value) Validates a compiler option and returnsnullif the option is null.
-
Method Details
-
registerRuntime
Registers a runtime instance after it was fully initialized. -
createCompiler
Creates a new compiler handle for compilation. A runtime must beregisteredprior to calling this method. Only one compiler instance should be created per Truffle runtime instance. -
listCompilerOptions
TruffleCompilerOptionDescriptor[] listCompilerOptions()Lists all compiler options available, including deprecated options. -
compilerOptionExists
Returnstrueif a compilation key exists, elsefalse. -
validateCompilerOption
-
getCompilerConfigurationName
Returns a compiler configuration name that will be used. -
openCompilerThreadScope
Opens a compiler thread scope for compilation threads. Use with try-with-resourcce. -
isSuppressedCompilationFailure
-
getCompilerVersion
-