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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/universe/universe.dart

Issue 118253004: Remove tracking of factories with type arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 universe; 5 library universe;
6 6
7 import '../elements/elements.dart'; 7 import '../elements/elements.dart';
8 import '../dart2jslib.dart'; 8 import '../dart2jslib.dart';
9 import '../dart_types.dart'; 9 import '../dart_types.dart';
10 import '../types/types.dart'; 10 import '../types/types.dart';
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 * Set of closures that use type variables in their signature. 61 * Set of closures that use type variables in their signature.
62 */ 62 */
63 final Set<Element> genericClosures = new Set<Element>(); 63 final Set<Element> genericClosures = new Set<Element>();
64 64
65 /** 65 /**
66 * Set of methods in instantiated classes that are potentially 66 * Set of methods in instantiated classes that are potentially
67 * closurized. 67 * closurized.
68 */ 68 */
69 final Set<Element> closurizedMembers = new Set<Element>(); 69 final Set<Element> closurizedMembers = new Set<Element>();
70 70
71 bool usingFactoryWithTypeArguments = false;
72
73 bool hasMatchingSelector(Set<Selector> selectors, 71 bool hasMatchingSelector(Set<Selector> selectors,
74 Element member, 72 Element member,
75 Compiler compiler) { 73 Compiler compiler) {
76 if (selectors == null) return false; 74 if (selectors == null) return false;
77 for (Selector selector in selectors) { 75 for (Selector selector in selectors) {
78 if (selector.appliesUnnamed(member, compiler)) return true; 76 if (selector.appliesUnnamed(member, compiler)) return true;
79 } 77 }
80 return false; 78 return false;
81 } 79 }
82 80
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 } 671 }
674 672
675 Selector extendIfReachesAll(Compiler compiler) { 673 Selector extendIfReachesAll(Compiler compiler) {
676 bool canReachAll = compiler.enabledInvokeOn 674 bool canReachAll = compiler.enabledInvokeOn
677 && mask.needsNoSuchMethodHandling(this, compiler); 675 && mask.needsNoSuchMethodHandling(this, compiler);
678 return canReachAll 676 return canReachAll
679 ? new TypedSelector(compiler.typesTask.dynamicType, this) 677 ? new TypedSelector(compiler.typesTask.dynamicType, this)
680 : this; 678 : this;
681 } 679 }
682 } 680 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698