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

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

Issue 2606253002: Move dart_types to elements/resolution_types (Closed)
Patch Set: Created 3 years, 11 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 /// This library defines individual world impacts. 5 /// This library defines individual world impacts.
6 /// 6 ///
7 /// We call these building blocks `uses`. Each `use` is a single impact of the 7 /// We call these building blocks `uses`. Each `use` is a single impact of the
8 /// world. Some example uses are: 8 /// world. Some example uses are:
9 /// 9 ///
10 /// * an invocation of a top level function 10 /// * an invocation of a top level function
11 /// * a call to the `foo()` method on an unknown class. 11 /// * a call to the `foo()` method on an unknown class.
12 /// * an instantiation of class T 12 /// * an instantiation of class T
13 /// 13 ///
14 /// The different compiler stages combine these uses into `WorldImpact` objects, 14 /// The different compiler stages combine these uses into `WorldImpact` objects,
15 /// which are later used to construct a closed-world understanding of the 15 /// which are later used to construct a closed-world understanding of the
16 /// program. 16 /// program.
17 library dart2js.universe.use; 17 library dart2js.universe.use;
18 18
19 import '../closure.dart' show BoxFieldElement; 19 import '../closure.dart' show BoxFieldElement;
20 import '../common.dart'; 20 import '../common.dart';
21 import '../dart_types.dart'; 21 import '../elements/resolution_types.dart';
22 import '../elements/elements.dart'; 22 import '../elements/elements.dart';
23 import '../util/util.dart' show Hashing; 23 import '../util/util.dart' show Hashing;
24 import '../world.dart' show World; 24 import '../world.dart' show World;
25 import 'call_structure.dart' show CallStructure; 25 import 'call_structure.dart' show CallStructure;
26 import 'selector.dart' show Selector; 26 import 'selector.dart' show Selector;
27 import 'world_builder.dart' show ReceiverConstraint; 27 import 'world_builder.dart' show ReceiverConstraint;
28 28
29 enum DynamicUseKind { 29 enum DynamicUseKind {
30 INVOKE, 30 INVOKE,
31 GET, 31 GET,
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 } 393 }
394 394
395 bool operator ==(other) { 395 bool operator ==(other) {
396 if (identical(this, other)) return true; 396 if (identical(this, other)) return true;
397 if (other is! TypeUse) return false; 397 if (other is! TypeUse) return false;
398 return type == other.type && kind == other.kind; 398 return type == other.type && kind == other.kind;
399 } 399 }
400 400
401 String toString() => 'TypeUse($type,$kind)'; 401 String toString() => 'TypeUse($type,$kind)';
402 } 402 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/universe/feature.dart ('k') | pkg/compiler/lib/src/universe/world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698