# HG changeset patch # User Gilles Duboscq # Date 1341840620 -7200 # Node ID 32613b375b30ecd80e6054da8c2e031495b4d312 # Parent 6a725f3c4bb0d4cce08482b986aeca77b6ae36b4 Remove useless Edge class diff -r 6a725f3c4bb0 -r 32613b375b30 graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalOptions.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalOptions.java Mon Jul 09 14:22:22 2012 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalOptions.java Mon Jul 09 15:30:20 2012 +0200 @@ -139,7 +139,6 @@ // Ideal graph visualizer output settings public static boolean PrintBinaryGraphs = ____; public static boolean PrintCFG = true; - public static int PlotLevel = 3; public static boolean PrintIdealGraphFile = ____; public static String PrintIdealGraphAddress = "127.0.0.1"; public static int PrintIdealGraphPort = 4444; @@ -214,6 +213,7 @@ public static boolean OptLivenessAnalysis = true; public static boolean OptLoopTransform = true; public static boolean OptSafepointElimination = true; + public static boolean FloatingReads = true; public static boolean OptTailDuplication = true; /** diff -r 6a725f3c4bb0 -r 32613b375b30 graal/com.oracle.graal.printer/src/com/oracle/graal/printer/BinaryGraphPrinter.java --- a/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/BinaryGraphPrinter.java Mon Jul 09 14:22:22 2012 +0200 +++ b/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/BinaryGraphPrinter.java Mon Jul 09 15:30:20 2012 +0200 @@ -63,49 +63,6 @@ private static final int KLASS = 0x00; private static final int ENUM_KLASS = 0x01; - protected static class Edge { - final int from; - final char fromIndex; - final int to; - final char toIndex; - final String label; - - public Edge(int from, char fromIndex, int to, char toIndex, String label) { - this.from = from; - this.fromIndex = fromIndex; - this.to = to; - this.toIndex = toIndex; - this.label = label; - } - - @Override - public int hashCode() { - int h = from ^ to; - h = 3 * h + fromIndex; - h = 5 * h + toIndex; - if (label != null) { - h ^= label.hashCode(); - } - return h; - } - - @Override - public boolean equals(Object obj) { - if (obj == this) { - return true; - } - if (obj instanceof Edge) { - Edge other = (Edge) obj; - return from == other.from - && fromIndex == other.fromIndex - && to == other.to - && toIndex == other.toIndex - && (label == other.label || (label != null && label.equals(other.label))); - } - return false; - } - } - private static final class CosntantPool extends LinkedHashMap { private final LinkedList availableIds; private int nextId;