src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/AbstractBeginNode.java
equal
deleted
inserted
replaced
127 public FixedNode next() { |
127 public FixedNode next() { |
128 FixedNode ret = current; |
128 FixedNode ret = current; |
129 if (ret == null) { |
129 if (ret == null) { |
130 throw new NoSuchElementException(); |
130 throw new NoSuchElementException(); |
131 } |
131 } |
132 if (!(current instanceof FixedWithNextNode) || (current instanceof AbstractBeginNode && current != AbstractBeginNode.this)) { |
132 if (current instanceof FixedWithNextNode) { |
|
133 current = ((FixedWithNextNode) current).next(); |
|
134 if (current instanceof AbstractBeginNode) { |
|
135 current = null; |
|
136 } |
|
137 } else { |
133 current = null; |
138 current = null; |
134 } else { |
|
135 current = ((FixedWithNextNode) current).next(); |
|
136 } |
139 } |
137 return ret; |
140 return ret; |
138 } |
141 } |
139 |
142 |
140 @Override |
143 @Override |