Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeData.java @ 7855:6e4fb0ccebb1
Generated factories implement the new NodeFactory interface.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 25 Feb 2013 13:13:02 +0100 |
parents | b891ec348f8a |
children | 6b74ffe38183 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeData.java Mon Feb 25 13:05:23 2013 +0100 +++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeData.java Mon Feb 25 13:13:02 2013 +0100 @@ -71,6 +71,17 @@ return !noSpecialization; } + public List<NodeData> getNodeChildren() { + List<NodeData> children = new ArrayList<>(); + for (NodeData child : getDeclaredChildren()) { + if (child.needsFactory()) { + children.add(child); + } + children.addAll(child.getNodeChildren()); + } + return children; + } + void setDeclaredChildren(List<NodeData> declaredChildren) { this.declaredChildren = declaredChildren;