Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java @ 7310:79a7b761755c
Added getLineNumberTable and getFileName capabilities.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 20 Dec 2012 14:50:56 +0100 |
parents | b914b9b4c578 |
children | 225002aba5a5 bbf97d6688d3 |
comparison
equal
deleted
inserted
replaced
7309:75c18356504d | 7310:79a7b761755c |
---|---|
146 if (targetMethod() == null) { | 146 if (targetMethod() == null) { |
147 return "??Invalid!"; | 147 return "??Invalid!"; |
148 } | 148 } |
149 return targetMethod().getName(); | 149 return targetMethod().getName(); |
150 } | 150 } |
151 | |
152 public static MethodCallTargetNode find(StructuredGraph graph, ResolvedJavaMethod method) { | |
153 for (MethodCallTargetNode target : graph.getNodes(MethodCallTargetNode.class)) { | |
154 if (target.targetMethod == method) { | |
155 return target; | |
156 } | |
157 } | |
158 return null; | |
159 } | |
151 } | 160 } |