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 types; | 5 library types; |
6 | 6 |
7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue, IterableBase; |
8 | 8 |
9 import '../dart2jslib.dart' hide Selector; | 9 import '../dart2jslib.dart' hide Selector; |
10 import '../js_backend/js_backend.dart' show JavaScriptBackend; | 10 import '../js_backend/js_backend.dart' show JavaScriptBackend; |
11 import '../tree/tree.dart'; | 11 import '../tree/tree.dart'; |
12 import '../elements/elements.dart'; | 12 import '../elements/elements.dart'; |
13 import '../native_handler.dart' as native; | 13 import '../native_handler.dart' as native; |
14 import '../util/util.dart'; | 14 import '../util/util.dart'; |
15 import '../universe/universe.dart'; | 15 import '../universe/universe.dart'; |
16 import 'simple_types_inferrer.dart' show SimpleTypesInferrer; | 16 import 'simple_types_inferrer.dart' show SimpleTypesInferrer; |
17 import '../dart_types.dart'; | 17 import '../dart_types.dart'; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 */ | 104 */ |
105 TypeMask getGuaranteedTypeOfSelector(Selector selector) { | 105 TypeMask getGuaranteedTypeOfSelector(Selector selector) { |
106 return measure(() { | 106 return measure(() { |
107 if (typesInferrer != null) { | 107 if (typesInferrer != null) { |
108 return typesInferrer.getTypeOfSelector(selector); | 108 return typesInferrer.getTypeOfSelector(selector); |
109 } | 109 } |
110 return null; | 110 return null; |
111 }); | 111 }); |
112 } | 112 } |
113 } | 113 } |
OLD | NEW |