comparison graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/NestedLoopTest.java @ 19403:61d3cb8e1280

Add generic parameter to NodeClass. Change Graph#getNodes(Class) to Graph#getNodes(NodeClass).
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 16 Feb 2015 17:47:43 +0100
parents a0a760b0fb5f
children b1530a6cce8c
comparison
equal deleted inserted replaced
19402:a16f1bbe2965 19403:61d3cb8e1280
135 private static boolean d() { 135 private static boolean d() {
136 return false; 136 return false;
137 } 137 }
138 138
139 private static Invoke getInvoke(String name, StructuredGraph graph) { 139 private static Invoke getInvoke(String name, StructuredGraph graph) {
140 for (MethodCallTargetNode callTarget : graph.getNodes(MethodCallTargetNode.class)) { 140 for (MethodCallTargetNode callTarget : graph.getNodes(MethodCallTargetNode.TYPE)) {
141 if (callTarget.targetMethod().getName().equals(name)) { 141 if (callTarget.targetMethod().getName().equals(name)) {
142 return callTarget.invoke(); 142 return callTarget.invoke();
143 } 143 }
144 } 144 }
145 return null; 145 return null;