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

Unified Diff: pkg/compiler/lib/src/universe/resolution_world_builder.dart

Issue 2826673002: Remove JavaScriptBackend from ClosedWorldBase (Closed)
Patch Set: Created 3 years, 8 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: pkg/compiler/lib/src/universe/resolution_world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/resolution_world_builder.dart b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
index 5238ec5ad4c6c10146f55296f7bb59cc1447ff3a..a06f79bb0165deef9e631efab76d7d019892d5fa 100644
--- a/pkg/compiler/lib/src/universe/resolution_world_builder.dart
+++ b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
@@ -796,9 +796,23 @@ class KernelResolutionWorldBuilder extends ResolutionWorldBuilderBase {
selectorConstraintsStrategy);
@override
- ClosedWorld closeWorld(DiagnosticReporter reporter) {
+ ClosedWorld closeWorld() {
// TODO(johnniwinther): Implement this.
- return null;
+ return _closedWorldCache = new KernelClosedWorld(
+ commonElements: _commonElements,
+ // TODO(johnniwinther): Compute these.
+ constantSystem: null,
+ nativeData: null,
+ interceptorData: null,
+ backendUsage: null,
+ resolutionWorldBuilder: this,
+ functionSetBuilder: _allFunctions,
+ allTypedefs: _allTypedefs,
+ mixinUses: _mixinUses,
+ // TODO(johnniwinther): Compute this.
+ typesImplementedBySubclasses: null,
+ classHierarchyNodes: _classHierarchyNodes,
+ classSets: _classSets);
}
@override

Powered by Google App Engine
This is Rietveld 408576698