comparison 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
comparison
equal deleted inserted replaced
7854:8e56c6951c86 7855:6e4fb0ccebb1
69 noSpecialization = noSpecialization && specialization.isGeneric() || specialization.isUninitialized(); 69 noSpecialization = noSpecialization && specialization.isGeneric() || specialization.isUninitialized();
70 } 70 }
71 return !noSpecialization; 71 return !noSpecialization;
72 } 72 }
73 73
74 public List<NodeData> getNodeChildren() {
75 List<NodeData> children = new ArrayList<>();
76 for (NodeData child : getDeclaredChildren()) {
77 if (child.needsFactory()) {
78 children.add(child);
79 }
80 children.addAll(child.getNodeChildren());
81 }
82 return children;
83 }
84
74 void setDeclaredChildren(List<NodeData> declaredChildren) { 85 void setDeclaredChildren(List<NodeData> declaredChildren) {
75 this.declaredChildren = declaredChildren; 86 this.declaredChildren = declaredChildren;
76 87
77 for (NodeData child : declaredChildren) { 88 for (NodeData child : declaredChildren) {
78 child.parent = this; 89 child.parent = this;