Index: tests/compiler/dart2js/memory_compiler.dart |
diff --git a/tests/compiler/dart2js/memory_compiler.dart b/tests/compiler/dart2js/memory_compiler.dart |
index 017db0a1428b298106fc84b848977a2c40b87776..482bb7c78520edd748ef4768e286d7cc7dc5467d 100644 |
--- a/tests/compiler/dart2js/memory_compiler.dart |
+++ b/tests/compiler/dart2js/memory_compiler.dart |
@@ -6,6 +6,8 @@ library dart2js.test.memory_compiler; |
import 'memory_source_file_helper.dart'; |
+import 'package:compiler/src/compile_time_constants.dart'; |
+ |
import 'package:compiler/src/dart2jslib.dart' |
show NullSink; |
@@ -155,6 +157,8 @@ Compiler compilerFor(Map<String,String> memorySourceFiles, |
// this call. |
compiler.onLibrariesLoaded(new MemoryLoadedLibraries(copiedLibraries)); |
+ compiler.backend.constantCompilerTask.copyConstantValues( |
+ cachedCompiler.backend.constantCompilerTask); |
compiler.symbolConstructor = cachedCompiler.symbolConstructor; |
compiler.mirrorSystemClass = cachedCompiler.mirrorSystemClass; |
compiler.mirrorsUsedClass = cachedCompiler.mirrorsUsedClass; |