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

Unified Diff: pkg/compiler/lib/src/js_backend/enqueuer.dart

Issue 2871583002: Pass InterceptorData through ResolutionWorldBuilder and access it through ClosedWorld (Closed)
Patch Set: 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
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/interceptor_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/enqueuer.dart
diff --git a/pkg/compiler/lib/src/js_backend/enqueuer.dart b/pkg/compiler/lib/src/js_backend/enqueuer.dart
index 0ae69911ceacc245678ac50fe0907f76081eb950..91bf149eea56e09de8ff945268b2a6292ef6c391 100644
--- a/pkg/compiler/lib/src/js_backend/enqueuer.dart
+++ b/pkg/compiler/lib/src/js_backend/enqueuer.dart
@@ -31,6 +31,7 @@ import '../universe/world_impact.dart'
show ImpactUseCase, WorldImpact, WorldImpactVisitor;
import '../util/enumset.dart';
import '../util/util.dart' show Setlet;
+import '../world.dart' show ClosedWorld;
/// [Enqueuer] which is specific to code generation.
class CodegenEnqueuer extends EnqueuerImpl {
@@ -270,10 +271,11 @@ class CodegenEnqueuer extends EnqueuerImpl {
/// Builder that creates the work item necessary for the code generation of a
/// [MemberElement].
class CodegenWorkItemBuilder extends WorkItemBuilder {
- JavaScriptBackend _backend;
- CompilerOptions _options;
+ final JavaScriptBackend _backend;
+ final ClosedWorld _closedWorld;
+ final CompilerOptions _options;
- CodegenWorkItemBuilder(this._backend, this._options);
+ CodegenWorkItemBuilder(this._backend, this._closedWorld, this._options);
@override
WorkItem createWorkItem(MemberElement element) {
@@ -290,6 +292,6 @@ class CodegenWorkItemBuilder extends WorkItemBuilder {
return null;
}
}
- return new CodegenWorkItem(_backend, element);
+ return new CodegenWorkItem(_backend, _closedWorld, element);
}
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/interceptor_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698