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

Side by Side Diff: pkg/compiler/lib/src/universe/element_world_builder.dart

Issue 2860733002: Remove ClosedWorld.allFunctions (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of world_builder; 5 part of world_builder;
6 6
7 /// [ResolutionEnqueuerWorldBuilder] based on the [Element] model. 7 /// [ResolutionEnqueuerWorldBuilder] based on the [Element] model.
8 class ElementResolutionWorldBuilder extends ResolutionWorldBuilderBase { 8 class ElementResolutionWorldBuilder extends ResolutionWorldBuilderBase {
9 /// Used for testing the new more precise computation of instantiated types 9 /// Used for testing the new more precise computation of instantiated types
10 /// and classes. 10 /// and classes.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses = 155 Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses =
156 populateHierarchyNodes(); 156 populateHierarchyNodes();
157 _closed = true; 157 _closed = true;
158 return _closedWorldCache = new ClosedWorldImpl( 158 return _closedWorldCache = new ClosedWorldImpl(
159 commonElements: _commonElements, 159 commonElements: _commonElements,
160 constantSystem: _backend.constantSystem, 160 constantSystem: _backend.constantSystem,
161 nativeData: _backend.nativeData, 161 nativeData: _backend.nativeData,
162 interceptorData: _backend.interceptorData, 162 interceptorData: _backend.interceptorData,
163 backendUsage: _backend.backendUsage, 163 backendUsage: _backend.backendUsage,
164 resolutionWorldBuilder: this, 164 resolutionWorldBuilder: this,
165 functionSetBuilder: _allFunctions, 165 functionSet: _allFunctions.close(),
166 allTypedefs: _allTypedefs, 166 allTypedefs: _allTypedefs,
167 mixinUses: _mixinUses, 167 mixinUses: _mixinUses,
168 typesImplementedBySubclasses: typesImplementedBySubclasses, 168 typesImplementedBySubclasses: typesImplementedBySubclasses,
169 classHierarchyNodes: _classHierarchyNodes, 169 classHierarchyNodes: _classHierarchyNodes,
170 classSets: _classSets); 170 classSets: _classSets);
171 } 171 }
172 172
173 @override 173 @override
174 void registerMixinUse( 174 void registerMixinUse(
175 MixinApplicationElement mixinApplication, ClassElement mixin) { 175 MixinApplicationElement mixinApplication, ClassElement mixin) {
176 assert(mixin.isDeclaration); 176 assert(mixin.isDeclaration);
177 super.registerMixinUse(mixinApplication, mixin); 177 super.registerMixinUse(mixinApplication, mixin);
178 } 178 }
179 } 179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698