public class HotSpotGraalCompiler extends Object implements GraalJVMCICompiler, Cancellable, JVMCICompilerShadow
| Modifier and Type | Method and Description |
|---|---|
CompilationResult |
compile(StructuredGraph graph,
boolean shouldRetainLocalVariables,
CompilationIdentifier compilationId,
DebugContext debug) |
CompilationResult |
compileHelper(CompilationResultBuilderFactory crbf,
CompilationResult result,
StructuredGraph graph,
boolean shouldRetainLocalVariables,
OptionValues options) |
CompilationRequestResult |
compileMethod(CompilationRequest request) |
CompilationRequestResult |
compileMethod(CompilationRequest request,
boolean installAsDefault,
OptionValues initialOptions) |
protected PhaseSuite<HighTierContext> |
configGraphBuilderSuite(PhaseSuite<HighTierContext> suite,
boolean shouldDebugNonSafepoints,
boolean shouldRetainLocalVariables,
boolean isOSR)
Reconfigures a given graph builder suite (GBS) if one of the given GBS parameter values is
not the default.
|
StructuredGraph |
createGraph(ResolvedJavaMethod method,
int entryBCI,
ProfileProvider profileProvider,
CompilationIdentifier compilationId,
OptionValues options,
DebugContext debug) |
List<DebugHandlersFactory> |
getDebugHandlersFactories() |
HotSpotGraalRuntimeProvider |
getGraalRuntime() |
protected LIRSuites |
getLIRSuites(HotSpotProviders providers,
OptionValues options) |
protected OptimisticOptimizations |
getOptimisticOpts(ProfilingInfo profilingInfo,
OptionValues options) |
protected Suites |
getSuites(HotSpotProviders providers,
OptionValues options) |
boolean |
isCancelled()
Determines if this task has been cancelled.
|
boolean |
isGCSupported(int gcIdentifier)
Determines if this compiler supports a given HotSpot garbage collector.
|
public List<DebugHandlersFactory> getDebugHandlersFactories()
public HotSpotGraalRuntimeProvider getGraalRuntime()
getGraalRuntime in interface GraalJVMCICompilerpublic CompilationRequestResult compileMethod(CompilationRequest request)
public CompilationRequestResult compileMethod(CompilationRequest request,
boolean installAsDefault,
OptionValues initialOptions)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic StructuredGraph createGraph(ResolvedJavaMethod method, int entryBCI, ProfileProvider profileProvider, CompilationIdentifier compilationId, OptionValues options, DebugContext debug)
public CompilationResult compileHelper(CompilationResultBuilderFactory crbf, CompilationResult result, StructuredGraph graph, boolean shouldRetainLocalVariables, OptionValues options)
public CompilationResult compile(StructuredGraph graph, boolean shouldRetainLocalVariables, CompilationIdentifier compilationId, DebugContext debug)
protected OptimisticOptimizations getOptimisticOpts(ProfilingInfo profilingInfo, OptionValues options)
protected Suites getSuites(HotSpotProviders providers, OptionValues options)
protected LIRSuites getLIRSuites(HotSpotProviders providers, OptionValues options)
protected PhaseSuite<HighTierContext> configGraphBuilderSuite(PhaseSuite<HighTierContext> suite, boolean shouldDebugNonSafepoints, boolean shouldRetainLocalVariables, boolean isOSR)
suite - the graph builder suiteshouldDebugNonSafepoints - specifies if extra debug info should be generated (default is
false)shouldRetainLocalVariables - specifies if local variables should be retained for
debugging purposes (default is false)isOSR - specifies if extra OSR-specific post-processing is required (default is false)suite if any of the GBS parameters did not have a
default value otherwise suitepublic boolean isGCSupported(int gcIdentifier)
JVMCICompilerShadowisGCSupported in interface JVMCICompilerShadowgcIdentifier - ordinal of a CollectedHeap::Name value