OLD | NEW |
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 universe; | 5 library universe; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
10 import '../dart2jslib.dart'; | 10 import '../dart2jslib.dart'; |
11 import '../dart_types.dart'; | 11 import '../dart_types.dart'; |
12 import '../types/types.dart'; | 12 import '../types/types.dart'; |
13 import '../tree/tree.dart'; | 13 import '../tree/tree.dart'; |
14 import '../util/util.dart'; | 14 import '../util/util.dart'; |
15 import '../world.dart' show | |
16 ClassWorld, | |
17 World; | |
18 | 15 |
19 part 'function_set.dart'; | 16 part 'function_set.dart'; |
20 part 'side_effects.dart'; | 17 part 'side_effects.dart'; |
21 | 18 |
22 class UniverseSelector { | 19 class UniverseSelector { |
23 final Selector selector; | 20 final Selector selector; |
24 final TypeMask mask; | 21 final TypeMask mask; |
25 | 22 |
26 UniverseSelector(this.selector, this.mask); | 23 UniverseSelector(this.selector, this.mask); |
27 | 24 |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 // Add bits from the call structure. | 901 // Add bits from the call structure. |
905 return Hashing.mixHashCodeBits(hash, callStructure.hashCode); | 902 return Hashing.mixHashCodeBits(hash, callStructure.hashCode); |
906 } | 903 } |
907 | 904 |
908 String toString() { | 905 String toString() { |
909 return 'Selector($kind, $name, ${callStructure.structureToString()})'; | 906 return 'Selector($kind, $name, ${callStructure.structureToString()})'; |
910 } | 907 } |
911 | 908 |
912 Selector toCallSelector() => new Selector.callClosureFrom(this); | 909 Selector toCallSelector() => new Selector.callClosureFrom(this); |
913 } | 910 } |
OLD | NEW |