Mercurial > hg > truffle
changeset 3524:9c9f2cd9e922
small clean ups
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Tue, 09 Aug 2011 17:52:46 +0200 |
parents | 159e702d578c |
children | e6998e327141 |
files | graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/Anchor.java graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/FloatingNode.java graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/Merge.java graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/StateSplit.java |
diffstat | 4 files changed, 4 insertions(+), 46 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/Anchor.java Tue Aug 09 16:33:53 2011 +0200 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/Anchor.java Tue Aug 09 17:52:46 2011 +0200 @@ -22,8 +22,6 @@ */ package com.oracle.max.graal.compiler.ir; -import java.util.*; - import com.oracle.max.graal.compiler.debug.*; import com.oracle.max.graal.graph.*; import com.sun.cri.ci.*; @@ -33,12 +31,8 @@ */ public final class Anchor extends FixedNodeWithNext { - @Input private final NodeInputList<GuardNode> guards = new NodeInputList<GuardNode>(this); + @Input private final NodeInputList<GuardNode> guards = new NodeInputList<GuardNode>(this); - /** - * Constructs a new Anchor instruction. - * @param graph - */ public Anchor(Graph graph) { super(CiKind.Illegal, graph); } @@ -56,40 +50,4 @@ public void print(LogStream out) { out.print("anchor ").print(next()); } - - public Iterable<GuardNode> happensAfterGuards() { - final Iterator<Node> usages = this.usages().iterator(); - return new Iterable<GuardNode>() { - public Iterator<GuardNode> iterator() { - return new Iterator<GuardNode>() { - private GuardNode next; - @Override - public boolean hasNext() { - if (next == null) { - while (usages.hasNext()) { - Node cur = usages.next(); - if (cur instanceof GuardNode) { - next = ((GuardNode) cur); - break; - } - } - } - return next != null; - } - - @Override - public GuardNode next() { - GuardNode result = next; - next = null; - return result; - } - - @Override - public void remove() { - throw new IllegalStateException(); - } - }; - } - }; - } }
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/FloatingNode.java Tue Aug 09 16:33:53 2011 +0200 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/FloatingNode.java Tue Aug 09 17:52:46 2011 +0200 @@ -25,7 +25,7 @@ import com.oracle.max.graal.graph.*; import com.sun.cri.ci.*; -public abstract class FloatingNode extends Value implements Node.ValueNumberable { +public abstract class FloatingNode extends Value implements Node.ValueNumberable { public FloatingNode(CiKind kind, Graph graph) { super(kind, graph); }
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/Merge.java Tue Aug 09 16:33:53 2011 +0200 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/Merge.java Tue Aug 09 17:52:46 2011 +0200 @@ -35,7 +35,7 @@ * about the basic block, including the successor and * predecessor blocks, exception handlers, liveness information, etc. */ -public class Merge extends StateSplit{ +public class Merge extends StateSplit { @Input private final NodeInputList<EndNode> ends = new NodeInputList<EndNode>(this);
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/StateSplit.java Tue Aug 09 16:33:53 2011 +0200 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/StateSplit.java Tue Aug 09 17:52:46 2011 +0200 @@ -34,7 +34,7 @@ */ public abstract class StateSplit extends FixedNodeWithNext { - @Input private FrameState stateAfter; + @Input private FrameState stateAfter; public FrameState stateAfter() { return stateAfter;