| Index: tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
|
| diff --git a/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart b/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
|
| index 66bfd8245f23e33f55794eb21f09b7210f2fc0b7..c0eeba9a28e5df8d2ce334ecfda957694e6c9a69 100644
|
| --- a/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
|
| +++ b/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
|
| @@ -16,12 +16,8 @@ void main() {
|
| CompilationResult result =
|
| await runCompiler(memorySourceFiles: MEMORY_SOURCE_FILES);
|
| Compiler compiler = result.compiler;
|
| - var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
|
| var outputUnitForConstant = compiler.deferredLoadTask.outputUnitForConstant;
|
| var mainOutputUnit = compiler.deferredLoadTask.mainOutputUnit;
|
| - var lib =
|
| - compiler.libraryLoader.lookupLibrary(Uri.parse("memory:lib.dart"));
|
| - var backend = compiler.backend;
|
| List<ConstantValue> allConstants = [];
|
|
|
| addConstantWithDependendencies(ConstantValue c) {
|
| @@ -29,7 +25,9 @@ void main() {
|
| c.getDependencies().forEach(addConstantWithDependendencies);
|
| }
|
|
|
| - backend.constants.compiledConstants.forEach(addConstantWithDependendencies);
|
| + var codegenWorldBuilder = compiler.codegenWorldBuilder;
|
| + codegenWorldBuilder.compiledConstants
|
| + .forEach(addConstantWithDependendencies);
|
| for (String stringValue in ["cA", "cB", "cC"]) {
|
| ConstantValue constant = allConstants.firstWhere((constant) {
|
| return constant.isString && constant.primitiveValue == stringValue;
|
|
|