| 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('../leg.dart'); | 7 #import('../leg.dart'); |
| 8 #import('../tree/tree.dart'); | 8 #import('../tree/tree.dart'); |
| 9 #import('../elements/elements.dart'); | 9 #import('../elements/elements.dart'); |
| 10 #import('../util/util.dart'); | 10 #import('../util/util.dart'); |
| 11 #import('../scanner/scannerlib.dart'); |
| 12 |
| 13 #source('concrete_types_inferrer.dart'); |
| 11 | 14 |
| 12 /** | 15 /** |
| 13 * The types task infers guaranteed types globally. | 16 * The types task infers guaranteed types globally. |
| 14 */ | 17 */ |
| 15 class TypesTask extends CompilerTask { | 18 class TypesTask extends CompilerTask { |
| 16 final String name = 'Type inference'; | 19 final String name = 'Type inference'; |
| 17 final Set<Element> untypedElements; | 20 final Set<Element> untypedElements; |
| 18 final Map<Element, Link<Element>> typedSends; | 21 final Map<Element, Link<Element>> typedSends; |
| 19 | 22 |
| 20 TypesTask(Compiler compiler) | 23 TypesTask(Compiler compiler) |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 * [:null:] if it gives up. | 227 * [:null:] if it gives up. |
| 225 */ | 228 */ |
| 226 Element computeLub(Element a, Element b) { | 229 Element computeLub(Element a, Element b) { |
| 227 // Fast common case, but also simple initial implementation. | 230 // Fast common case, but also simple initial implementation. |
| 228 if (a === b) return a; | 231 if (a === b) return a; |
| 229 | 232 |
| 230 // TODO(ahe): Improve the following "computation"... | 233 // TODO(ahe): Improve the following "computation"... |
| 231 return null; | 234 return null; |
| 232 } | 235 } |
| 233 } | 236 } |
| OLD | NEW |