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

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

Issue 2725933006: Reduce use of elements/resolution_types in enqueuer. (Closed)
Patch Set: Updated cf. comment. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library world_builder; 5 library world_builder;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show Identifiers; 10 import '../common/names.dart' show Identifiers;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 /// The [WorldBuilder] is an auxiliary class used in the process of computing 150 /// The [WorldBuilder] is an auxiliary class used in the process of computing
151 /// the [ClosedWorld]. 151 /// the [ClosedWorld].
152 // TODO(johnniwinther): Move common implementation to a [WorldBuilderBase] when 152 // TODO(johnniwinther): Move common implementation to a [WorldBuilderBase] when
153 // universes and worlds have been unified. 153 // universes and worlds have been unified.
154 abstract class WorldBuilder { 154 abstract class WorldBuilder {
155 /// All directly instantiated classes, that is, classes with a generative 155 /// All directly instantiated classes, that is, classes with a generative
156 /// constructor that has been called directly and not only through a 156 /// constructor that has been called directly and not only through a
157 /// super-call. 157 /// super-call.
158 // TODO(johnniwinther): Improve semantic precision. 158 // TODO(johnniwinther): Improve semantic precision.
159 Iterable<ClassElement> get directlyInstantiatedClasses; 159 Iterable<ClassEntity> get directlyInstantiatedClasses;
160 160
161 /// All types that are checked either through is, as or checked mode checks. 161 /// All types that are checked either through is, as or checked mode checks.
162 Iterable<ResolutionDartType> get isChecks; 162 Iterable<DartType> get isChecks;
163
164 /// All directly instantiated types, that is, the types of the directly
163 165
164 /// Registers that [type] is checked in this world builder. The unaliased type 166 /// Registers that [type] is checked in this world builder. The unaliased type
165 /// is returned. 167 /// is returned.
166 ResolutionDartType registerIsCheck(ResolutionDartType type); 168 void registerIsCheck(DartType type);
167 169
168 /// All directly instantiated types, that is, the types of the directly
169 /// instantiated classes. 170 /// instantiated classes.
170 // TODO(johnniwinther): Improve semantic precision. 171 // TODO(johnniwinther): Improve semantic precision.
171 Iterable<ResolutionDartType> get instantiatedTypes; 172 Iterable<InterfaceType> get instantiatedTypes;
172 } 173 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/universe/resolution_world_builder.dart ('k') | tests/compiler/dart2js/analyze_unused_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698