changeset 19236:ba6ce79ad299

GraalCompilerTest: use DerivedOptionValue for lowLevelSuites.
author Josef Eisl <josef.eisl@jku.at>
date Tue, 10 Feb 2015 14:44:55 +0100
parents 9f411d79ffc0
children 9c921eb127ba
files graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java	Tue Feb 10 14:43:12 2015 +0100
+++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java	Tue Feb 10 14:44:55 2015 +0100
@@ -90,7 +90,7 @@
     private final Providers providers;
     private final Backend backend;
     private final DerivedOptionValue<Suites> suites;
-    private final LowLevelSuites lowLevelSuites;
+    private final DerivedOptionValue<LowLevelSuites> lowLevelSuites;
 
     /**
      * Can be overridden by unit tests to verify properties of the graph.
@@ -175,7 +175,7 @@
         this.backend = Graal.getRequiredCapability(RuntimeProvider.class).getHostBackend();
         this.providers = getBackend().getProviders();
         this.suites = new DerivedOptionValue<>(this::createSuites);
-        this.lowLevelSuites = createLowLevelSuites();
+        this.lowLevelSuites = new DerivedOptionValue<>(this::createLowLevelSuites);
         installSubstitutions();
     }
 
@@ -196,7 +196,7 @@
         }
         this.providers = backend.getProviders();
         this.suites = new DerivedOptionValue<>(this::createSuites);
-        this.lowLevelSuites = createLowLevelSuites();
+        this.lowLevelSuites = new DerivedOptionValue<>(this::createLowLevelSuites);
         installSubstitutions();
     }
 
@@ -365,7 +365,7 @@
     }
 
     protected LowLevelSuites getLowLevelSuites() {
-        return lowLevelSuites;
+        return lowLevelSuites.getValue();
     }
 
     protected Providers getProviders() {