Mercurial > hg > truffle
diff graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/AheadOfTimeCompilationTest.java @ 9966:4158612eca60
GraalOptions: use static import
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Mon, 10 Jun 2013 15:41:23 +0200 |
parents | ab90954e5fec |
children | 3df534c97af1 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/AheadOfTimeCompilationTest.java Mon Jun 10 15:41:21 2013 +0200 +++ b/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/AheadOfTimeCompilationTest.java Mon Jun 10 15:41:23 2013 +0200 @@ -23,6 +23,7 @@ package com.oracle.graal.hotspot.test; import static com.oracle.graal.api.code.CodeUtil.*; +import static com.oracle.graal.phases.GraalOptions.*; import org.junit.*; @@ -74,8 +75,8 @@ StructuredGraph graph = parse(test); ResolvedJavaMethod method = graph.method(); - boolean originalSetting = GraalOptions.OptCanonicalizeReads.getValue(); - GraalOptions.OptCanonicalizeReads.setValue(!compileAOT); + boolean originalSetting = OptCanonicalizeReads.getValue(); + OptCanonicalizeReads.setValue(!compileAOT); PhasePlan phasePlan = new PhasePlan(); final StructuredGraph graphCopy = graph.copy(); GraphBuilderPhase graphBuilderPhase = new GraphBuilderPhase(runtime, GraphBuilderConfiguration.getDefault(), OptimisticOptimizations.ALL); @@ -87,7 +88,7 @@ new SpeculationLog()); addMethod(method, compResult, graphCopy); - GraalOptions.OptCanonicalizeReads.setValue(originalSetting); + OptCanonicalizeReads.setValue(originalSetting); return graph; }