Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/GraphPrintVisitor.java @ 13864:5365f8d35b06
Truffle: fixed inlined trees were not printed to graph visitor.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 03 Feb 2014 21:11:36 +0100 |
parents | b16ec83edc73 |
children | c5411233cdf8 |
comparison
equal
deleted
inserted
replaced
13863:88026f1d51e4 | 13864:5365f8d35b06 |
---|---|
341 | 341 |
342 private static LinkedHashMap<String, Node> findNamedNodeChildren(Node node) { | 342 private static LinkedHashMap<String, Node> findNamedNodeChildren(Node node) { |
343 LinkedHashMap<String, Node> nodes = new LinkedHashMap<>(); | 343 LinkedHashMap<String, Node> nodes = new LinkedHashMap<>(); |
344 NodeClass nodeClass = NodeClass.get(node.getClass()); | 344 NodeClass nodeClass = NodeClass.get(node.getClass()); |
345 | 345 |
346 if (node instanceof CallNode) { | |
347 RootNode inlinedRoot = ((CallNode) node).getInlinedRoot(); | |
348 if (inlinedRoot != null) { | |
349 nodes.put("inlinedRoot", inlinedRoot); | |
350 } | |
351 } | |
346 for (NodeField field : nodeClass.getFields()) { | 352 for (NodeField field : nodeClass.getFields()) { |
347 NodeFieldKind kind = field.getKind(); | 353 NodeFieldKind kind = field.getKind(); |
348 if (kind == NodeFieldKind.CHILD || kind == NodeFieldKind.CHILDREN) { | 354 if (kind == NodeFieldKind.CHILD || kind == NodeFieldKind.CHILDREN) { |
349 Object value = field.loadValue(node); | 355 Object value = field.loadValue(node); |
350 if (value != null) { | 356 if (value != null) { |