Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart

Issue 2916893002: Handle int constant (Closed)
Patch Set: Updated cf. comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « pkg/compiler/lib/src/universe/world_builder.dart ('k') | tests/compiler/dart2js/kernel/compile_from_dill_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698