changeset 5812:32613b375b30

Remove useless Edge class
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 09 Jul 2012 15:30:20 +0200
parents 6a725f3c4bb0
children 3b8bc07f8d17
files graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalOptions.java graal/com.oracle.graal.printer/src/com/oracle/graal/printer/BinaryGraphPrinter.java
diffstat 2 files changed, 1 insertions(+), 44 deletions(-) [+]
line wrap: on
line diff
--- 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;
 
     /**
--- 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<Object, Integer> {
         private final LinkedList<Integer> availableIds;
         private int nextId;