@@ -68,7 +68,7 @@ public class CachingPEGraphDecoder extends PEGraphDecoder {
6868
6969 private static final TimerKey BuildGraphTimer = DebugContext .timer ("PartialEvaluation-GraphBuilding" );
7070
71- protected final Providers providers ;
71+ protected final Providers graphCacheProviders ;
7272 protected final GraphBuilderConfiguration graphBuilderConfig ;
7373 protected final OptimisticOptimizations optimisticOpts ;
7474 private final EconomicMap <ResolvedJavaMethod , EncodedGraph > persistentGraphCache ;
@@ -84,21 +84,22 @@ public class CachingPEGraphDecoder extends PEGraphDecoder {
8484 * @param forceLink if {@code true} and the graph contains an invoke of a method from a class
8585 * that has not yet been linked, linking is performed.
8686 */
87- public CachingPEGraphDecoder (Architecture architecture , StructuredGraph graph , Providers providers , GraphBuilderConfiguration graphBuilderConfig , OptimisticOptimizations optimisticOpts ,
87+ public CachingPEGraphDecoder (Architecture architecture , StructuredGraph graph , Providers graphCacheProviders , Providers decodingProviders , GraphBuilderConfiguration graphBuilderConfig ,
88+ OptimisticOptimizations optimisticOpts ,
8889 LoopExplosionPlugin loopExplosionPlugin , InvocationPlugins invocationPlugins , InlineInvokePlugin [] inlineInvokePlugins ,
8990 ParameterPlugin parameterPlugin ,
9091 NodePlugin [] nodePlugins , ResolvedJavaMethod peRootForInlining , SourceLanguagePositionProvider sourceLanguagePositionProvider ,
9192 BasePhase <? super CoreProviders > postParsingPhase , EconomicMap <ResolvedJavaMethod , EncodedGraph > persistentGraphCache , Supplier <AutoCloseable > createPersistentCachedGraphScope ,
9293 boolean allowAssumptionsDuringParsing ,
9394 boolean needsExplicitException ,
9495 boolean forceLink ) {
95- super (architecture , graph , providers , loopExplosionPlugin ,
96+ super (architecture , graph , decodingProviders , loopExplosionPlugin ,
9697 invocationPlugins , inlineInvokePlugins , parameterPlugin , nodePlugins , peRootForInlining , sourceLanguagePositionProvider ,
9798 new ConcurrentHashMap <>(), new ConcurrentHashMap <>(), needsExplicitException , forceLink );
9899
99100 assert !graphBuilderConfig .trackNodeSourcePosition () || graph .trackNodeSourcePosition ();
100101
101- this .providers = providers ;
102+ this .graphCacheProviders = graphCacheProviders ;
102103 this .graphBuilderConfig = graphBuilderConfig ;
103104 this .optimisticOpts = optimisticOpts ;
104105 this .postParsingPhase = postParsingPhase ;
@@ -128,9 +129,9 @@ private EncodedGraph createGraph(ResolvedJavaMethod method, BytecodeProvider int
128129 * initial graph.
129130 */
130131 try (DebugContext .Scope scope = debug .scope ("createGraph" , graphToEncode )) {
131- new ConvertDeoptimizeToGuardPhase (canonicalizer ).apply (graphToEncode , providers );
132+ new ConvertDeoptimizeToGuardPhase (canonicalizer ).apply (graphToEncode , graphCacheProviders );
132133 if (GraalOptions .EarlyGVN .getValue (graphToEncode .getOptions ())) {
133- new DominatorBasedGlobalValueNumberingPhase (canonicalizer ).apply (graphToEncode , providers );
134+ new DominatorBasedGlobalValueNumberingPhase (canonicalizer ).apply (graphToEncode , graphCacheProviders );
134135 }
135136 } catch (Throwable t ) {
136137 throw debug .handle (t );
@@ -164,9 +165,9 @@ private StructuredGraph buildGraph(ResolvedJavaMethod method, BytecodeProvider i
164165 IntrinsicContext initialIntrinsicContext = null ;
165166 GraphBuilderPhase .Instance graphBuilderPhaseInstance = createGraphBuilderPhaseInstance (initialIntrinsicContext );
166167 graphBuilderPhaseInstance .apply (graphToEncode );
167- canonicalizer .apply (graphToEncode , providers );
168+ canonicalizer .apply (graphToEncode , graphCacheProviders );
168169 if (postParsingPhase != null ) {
169- postParsingPhase .apply (graphToEncode , providers );
170+ postParsingPhase .apply (graphToEncode , graphCacheProviders );
170171 }
171172 } catch (Throwable ex ) {
172173 throw debug .handle (ex );
0 commit comments