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

Unified Diff: tests/compiler/dart2js/kernel/closed_world2_test.dart

Issue 2935063002: Add ClosedWorld.elementEnvironment and remove Compiler.elementEnvironment (Closed)
Patch Set: Created 3 years, 6 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/kernel/closed_world2_test.dart
diff --git a/tests/compiler/dart2js/kernel/closed_world2_test.dart b/tests/compiler/dart2js/kernel/closed_world2_test.dart
index 0400cb563780fd0eb04ca8d5d3c066366a775abf..7ea0ad9f6a683b126726910e258ef29f926ad528 100644
--- a/tests/compiler/dart2js/kernel/closed_world2_test.dart
+++ b/tests/compiler/dart2js/kernel/closed_world2_test.dart
@@ -124,7 +124,8 @@ Future<ResultKind> mainInternal(List<String> args,
await analyzeOnly(entryPoint, memorySourceFiles, printSteps: true);
Compiler compiler = compilers.a;
compiler.resolutionWorldBuilder.closeWorld();
- ElementEnvironment environment1 = compiler.elementEnvironment;
+ ElementEnvironment environment1 =
+ compiler.frontendStrategy.elementEnvironment;
Compiler compiler2 = compilers.b;
KernelFrontEndStrategy frontendStrategy = compiler2.frontendStrategy;
@@ -134,7 +135,8 @@ Future<ResultKind> mainInternal(List<String> args,
KernelEquivalence equivalence = new KernelEquivalence(elementMap);
TestStrategy strategy = equivalence.defaultStrategy;
- ElementEnvironment environment2 = compiler2.elementEnvironment;
+ ElementEnvironment environment2 =
+ compiler2.frontendStrategy.elementEnvironment;
checkElementEnvironment(environment1, environment2, strategy);
ResolutionEnqueuer enqueuer2 = compiler2.enqueuer.resolution;
« no previous file with comments | « tests/compiler/dart2js/inference/inference_test_helper.dart ('k') | tests/compiler/dart2js/kernel/closed_world_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698