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

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

Issue 2786593004: Use entities in NativeResolutionEnqueuer and make it reusable for kernel (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9ac9e7f4e51a518b50de98eaa8038600b6b6b322..dfbabac4c27bdf265091bc476289d592368f216c 100644
--- a/tests/compiler/dart2js/kernel/closed_world_test.dart
+++ b/tests/compiler/dart2js/kernel/closed_world_test.dart
@@ -10,6 +10,7 @@ import 'package:async_helper/async_helper.dart';
import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/common.dart';
import 'package:compiler/src/common_elements.dart';
+import 'package:compiler/src/common/backend_api.dart';
import 'package:compiler/src/common/resolution.dart';
import 'package:compiler/src/compiler.dart';
import 'package:compiler/src/elements/resolution_types.dart';
@@ -175,8 +176,9 @@ EnqueuerListener createKernelResolutionEnqueuerListener(
CustomElementsResolutionAnalysis customElementsResolutionAnalysis;
LookupMapResolutionAnalysis lookupMapResolutionAnalysis;
MirrorsResolutionAnalysis mirrorsResolutionAnalysis;
- NativeResolutionEnqueuer nativeResolutionEnqueuer;
+ BackendClasses backendClasses = new JavaScriptBackendClasses(
+ elementEnvironment, helpers, nativeBasicData);
InterceptorDataBuilder interceptorDataBuilder =
new InterceptorDataBuilderImpl(
nativeBasicData, helpers, elementEnvironment, commonElements);
@@ -184,6 +186,15 @@ EnqueuerListener createKernelResolutionEnqueuerListener(
new BackendUsageBuilderImpl(commonElements, helpers);
NoSuchMethodRegistry noSuchMethodRegistry = new NoSuchMethodRegistry(
helpers, new KernelNoSuchMethodResolver(worldBuilder));
+ NativeResolutionEnqueuer nativeResolutionEnqueuer =
+ new NativeResolutionEnqueuer(
+ options,
+ elementEnvironment,
+ commonElements,
+ helpers,
+ backendClasses,
+ backendUsageBuilder,
+ new KernelNativeClassResolver(worldBuilder));
return new ResolutionEnqueuerListener(
options,
@@ -191,8 +202,7 @@ EnqueuerListener createKernelResolutionEnqueuerListener(
commonElements,
helpers,
impacts,
- new JavaScriptBackendClasses(
- elementEnvironment, helpers, nativeBasicData),
+ backendClasses,
nativeBasicData,
interceptorDataBuilder,
backendUsageBuilder,
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698