comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java @ 7123:b914b9b4c578

graal.graph refactorings Common out NodeInputsIterable and NodeSuccessorsIterable Remove NodeUsagesList.size, use .count instead Change return type of Node.usages to NodeIterable<Node>
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 03 Dec 2012 13:53:53 +0100
parents 2463eb24b644
children 79a7b761755c
comparison
equal deleted inserted replaced
7122:8f45ab034ff3 7123:b914b9b4c578
96 } 96 }
97 97
98 98
99 @Override 99 @Override
100 public boolean verify() { 100 public boolean verify() {
101 assert usages().size() <= 1 : "call target may only be used by a single invoke"; 101 assert usages().count() <= 1 : "call target may only be used by a single invoke";
102 for (Node n : usages()) { 102 for (Node n : usages()) {
103 assertTrue(n instanceof Invoke, "call target can only be used from an invoke (%s)", n); 103 assertTrue(n instanceof Invoke, "call target can only be used from an invoke (%s)", n);
104 } 104 }
105 return super.verify(); 105 return super.verify();
106 } 106 }