Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/DirectCallNode.java @ 18310:36fb9592c13b
Truffle: simpler, more consistent toString for DirectCallNode subclasses.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Sat, 08 Nov 2014 22:22:00 +0000 |
parents | ab62800259ff |
children | 57f3498a51a4 |
comparison
equal
deleted
inserted
replaced
18309:d079b2af3a15 | 18310:36fb9592c13b |
---|---|
173 if (target instanceof RootCallTarget) { | 173 if (target instanceof RootCallTarget) { |
174 return ((RootCallTarget) target).getRootNode(); | 174 return ((RootCallTarget) target).getRootNode(); |
175 } | 175 } |
176 return null; | 176 return null; |
177 } | 177 } |
178 | |
179 @Override | |
180 public String toString() { | |
181 return String.format("%s(target=%s)", getClass().getSimpleName(), getCurrentCallTarget()); | |
182 } | |
183 | |
178 } | 184 } |