changeset 5122:9b940aff6c6b

fixed failing testcases
author Christian Haeubl <christian.haeubl@oracle.com>
date Tue, 20 Mar 2012 10:32:34 -0700
parents 34518fd74518
children 3d0556d10a2b
files graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraphScheduleTest.java graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraphTest.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraphScheduleTest.java	Tue Mar 20 08:34:54 2012 -0700
+++ b/graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraphScheduleTest.java	Tue Mar 20 10:32:34 2012 -0700
@@ -50,7 +50,7 @@
                 }
                 block = block.getDominator();
             }
-            Assert.assertTrue(block == aBlock);
+            Assert.assertSame(block, aBlock);
         }
     }
 }
--- a/graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraphTest.java	Tue Mar 20 08:34:54 2012 -0700
+++ b/graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraphTest.java	Tue Mar 20 10:32:34 2012 -0700
@@ -111,7 +111,7 @@
     protected StructuredGraph parse(Method m) {
         RiResolvedMethod riMethod = runtime.getRiMethod(m);
         StructuredGraph graph = new StructuredGraph(riMethod);
-        new GraphBuilderPhase(runtime, GraphBuilderConfiguration.getSnippetDefault(), OptimisticOptimizations.NONE).apply(graph);
+        new GraphBuilderPhase(runtime, GraphBuilderConfiguration.getSnippetDefault(), OptimisticOptimizations.ALL).apply(graph);
         return graph;
     }
 
@@ -127,7 +127,7 @@
 
     protected PhasePlan getDefaultPhasePlan() {
         PhasePlan plan = new PhasePlan();
-        plan.addPhase(PhasePosition.AFTER_PARSING, new GraphBuilderPhase(runtime, GraphBuilderConfiguration.getSnippetDefault(), OptimisticOptimizations.NONE));
+        plan.addPhase(PhasePosition.AFTER_PARSING, new GraphBuilderPhase(runtime, GraphBuilderConfiguration.getSnippetDefault(), OptimisticOptimizations.ALL));
         return plan;
     }
 }