comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java @ 18969:14496953435e

Use Node#getUsageCount wherever possible.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 27 Jan 2015 13:17:53 +0100
parents f57d86eb036f
children edf3a7fdd067
comparison
equal deleted inserted replaced
18968:287f269b6c5a 18969:14496953435e
67 return (Invoke) this.usages().first(); 67 return (Invoke) this.usages().first();
68 } 68 }
69 69
70 @Override 70 @Override
71 public boolean verify() { 71 public boolean verify() {
72 assert usages().count() <= 1 : "call target may only be used by a single invoke"; 72 assert getUsageCount() <= 1 : "call target may only be used by a single invoke";
73 for (Node n : usages()) { 73 for (Node n : usages()) {
74 assertTrue(n instanceof Invoke, "call target can only be used from an invoke (%s)", n); 74 assertTrue(n instanceof Invoke, "call target can only be used from an invoke (%s)", n);
75 } 75 }
76 if (invokeKind().isDirect()) { 76 if (invokeKind().isDirect()) {
77 assertTrue(targetMethod().isConcrete(), "special calls or static calls are only allowed for concrete methods (%s)", targetMethod()); 77 assertTrue(targetMethod().isConcrete(), "special calls or static calls are only allowed for concrete methods (%s)", targetMethod());