comparison graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ReplacementsImpl.java @ 18845:f57d86eb036f

removed Node factory methods
author Doug Simon <doug.simon@oracle.com>
date Mon, 12 Jan 2015 20:39:04 +0100
parents 5a21cac1968f
children 5be321eab6ac
comparison
equal deleted inserted replaced
18843:f2261069ba99 18845:f57d86eb036f
586 final StructuredGraph graph = new StructuredGraph(methodToParse); 586 final StructuredGraph graph = new StructuredGraph(methodToParse);
587 try (Scope s = Debug.scope("buildInitialGraph", graph)) { 587 try (Scope s = Debug.scope("buildInitialGraph", graph)) {
588 MetaAccessProvider metaAccess = replacements.providers.getMetaAccess(); 588 MetaAccessProvider metaAccess = replacements.providers.getMetaAccess();
589 589
590 if (MethodsElidedInSnippets != null && methodToParse.getSignature().getReturnKind() == Kind.Void && MethodFilter.matches(MethodsElidedInSnippets, methodToParse)) { 590 if (MethodsElidedInSnippets != null && methodToParse.getSignature().getReturnKind() == Kind.Void && MethodFilter.matches(MethodsElidedInSnippets, methodToParse)) {
591 graph.addAfterFixed(graph.start(), graph.add(ReturnNode.create(null))); 591 graph.addAfterFixed(graph.start(), graph.add(new ReturnNode(null)));
592 } else { 592 } else {
593 createGraphBuilder(metaAccess, GraphBuilderConfiguration.getSnippetDefault(), OptimisticOptimizations.NONE).apply(graph); 593 createGraphBuilder(metaAccess, GraphBuilderConfiguration.getSnippetDefault(), OptimisticOptimizations.NONE).apply(graph);
594 } 594 }
595 afterParsing(graph); 595 afterParsing(graph);
596 596