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

Side by Side Diff: lib/compiler/implementation/types/types.dart

Issue 10907028: Standalone concrete type inference (not integrated in the compiler). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix tests Created 8 years, 2 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 | Annotate | Revision Log
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('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
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 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/types/concrete_types_inferrer.dart ('k') | tests/compiler/dart2js/cpa_inference_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698