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

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

Issue 2935663002: Remove Compiler.commonElements (Closed)
Patch Set: Remove Compiler._commonElements 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_world_test.dart
diff --git a/tests/compiler/dart2js/kernel/closed_world_test.dart b/tests/compiler/dart2js/kernel/closed_world_test.dart
index 27ad47334f3a17f3f015a8544a3566b0c4e40939..d8464eaddbae02eec4cf1373afc16347c023c621 100644
--- a/tests/compiler/dart2js/kernel/closed_world_test.dart
+++ b/tests/compiler/dart2js/kernel/closed_world_test.dart
@@ -134,14 +134,16 @@ main(List<String> args) {
List createResolutionEnqueuerListener(Compiler compiler) {
JavaScriptBackend backend = compiler.backend;
BackendUsageBuilder backendUsageBuilder =
- new BackendUsageBuilderImpl(compiler.commonElements);
+ new BackendUsageBuilderImpl(compiler.frontendStrategy.commonElements);
InterceptorDataBuilder interceptorDataBuilder =
- new InterceptorDataBuilderImpl(backend.nativeBasicData,
- compiler.elementEnvironment, compiler.commonElements);
+ new InterceptorDataBuilderImpl(
+ backend.nativeBasicData,
+ compiler.elementEnvironment,
+ compiler.frontendStrategy.commonElements);
ResolutionEnqueuerListener listener = new ResolutionEnqueuerListener(
compiler.options,
- compiler.elementEnvironment,
- compiler.commonElements,
+ compiler.frontendStrategy.elementEnvironment,
+ compiler.frontendStrategy.commonElements,
backend.impacts,
backend.nativeBasicData,
interceptorDataBuilder,
@@ -153,7 +155,9 @@ List createResolutionEnqueuerListener(Compiler compiler) {
backend.lookupMapResolutionAnalysis,
backend.mirrorsResolutionAnalysis,
new TypeVariableResolutionAnalysis(
- compiler.elementEnvironment, backend.impacts, backendUsageBuilder),
+ compiler.frontendStrategy.elementEnvironment,
+ backend.impacts,
+ backendUsageBuilder),
backend.nativeResolutionEnqueuerForTesting,
compiler.deferredLoadTask,
backend.kernelTask);
« no previous file with comments | « tests/compiler/dart2js/jsinterop/world_test.dart ('k') | tests/compiler/dart2js/minimal_resolution_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698