Mercurial > hg > truffle
changeset 15646:2bc323b43467
[single-pass-iter] sharpening the declared type of PathStart.node
author | Miguel Garcia <miguel.m.garcia@oracle.com> |
---|---|
date | Wed, 14 May 2014 16:13:44 +0200 |
parents | c93c3dc57f53 |
children | 84cf47e9c9f3 |
files | graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/SinglePassNodeIterator.java |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/SinglePassNodeIterator.java Wed May 14 16:07:05 2014 +0200 +++ b/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/SinglePassNodeIterator.java Wed May 14 16:13:44 2014 +0200 @@ -110,10 +110,10 @@ * </p> */ private static class PathStart<U> { - private final FixedNode node; + private final BeginNode node; private final U stateOnEntry; - private PathStart(FixedNode node, U stateOnEntry) { + private PathStart(BeginNode node, U stateOnEntry) { this.node = node; this.stateOnEntry = stateOnEntry; assert repOK(); @@ -123,7 +123,7 @@ * @return true iff this instance is internally consistent (ie, its "representation is OK") */ private boolean repOK() { - return (node instanceof MergeNode && stateOnEntry == null) || (node instanceof BeginNode && stateOnEntry != null); + return (node instanceof MergeNode && stateOnEntry == null) || (stateOnEntry != null); } } @@ -226,7 +226,7 @@ assert ready : "Not a single-pass iterator after all"; return merge; } else { - BeginNode begin = (BeginNode) elem.node; + BeginNode begin = elem.node; assert begin.predecessor() != null; state = elem.stateOnEntry.clone(); state.afterSplit(begin);