comparison graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/NodeArray.java @ 2972:c7ce8d00c33f

Removed predecessorIndex array from the Node base class.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 15 Jun 2011 17:18:31 +0200
parents fe44e684f1cb
children 7ed943d4d730
comparison
equal deleted inserted replaced
2971:8f1e2c8815b4 2972:c7ce8d00c33f
143 } else { 143 } else {
144 assert self().successors == this; 144 assert self().successors == this;
145 if (old != null) { 145 if (old != null) {
146 for (int i = 0; i < old.predecessors.size(); ++i) { 146 for (int i = 0; i < old.predecessors.size(); ++i) {
147 Node cur = old.predecessors.get(i); 147 Node cur = old.predecessors.get(i);
148 if (cur == self() && old.predecessorsIndex.get(i) == index) { 148 if (cur == self()) {
149 old.predecessors.remove(i); 149 old.predecessors.remove(i);
150 old.predecessorsIndex.remove(i); 150 break;
151 } 151 }
152 } 152 }
153 } 153 }
154 if (node != null) { 154 if (node != null) {
155 node.predecessors.add(self()); 155 node.predecessors.add(self());
156 node.predecessorsIndex.add(index);
157 } 156 }
158 } 157 }
159 } 158 }
160 159
161 return old; 160 return old;