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

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

Issue 409473002: A bit of element model cleanup. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 5 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
« 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 61
62 /** 62 /**
63 * Set of closures that use type variables in their signature. 63 * Set of closures that use type variables in their signature.
64 */ 64 */
65 final Set<Element> genericClosures = new Set<Element>(); 65 final Set<Element> genericClosures = new Set<Element>();
66 66
67 /** 67 /**
68 * Set of all closures in the program. Used by the mirror tracking system 68 * Set of all closures in the program. Used by the mirror tracking system
69 * to find all live closure instances. 69 * to find all live closure instances.
70 */ 70 */
71 final Set<FunctionElement> allClosures = new Set<FunctionElement>(); 71 final Set<LocalFunctionElement> allClosures = new Set<LocalFunctionElement>();
72 72
73 /** 73 /**
74 * Set of methods in instantiated classes that are potentially 74 * Set of methods in instantiated classes that are potentially
75 * closurized. 75 * closurized.
76 */ 76 */
77 final Set<Element> closurizedMembers = new Set<Element>(); 77 final Set<Element> closurizedMembers = new Set<Element>();
78 78
79 bool usingFactoryWithTypeArguments = false; 79 bool usingFactoryWithTypeArguments = false;
80 80
81 bool hasMatchingSelector(Set<Selector> selectors, 81 bool hasMatchingSelector(Set<Selector> selectors,
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 } 686 }
687 687
688 Selector extendIfReachesAll(Compiler compiler) { 688 Selector extendIfReachesAll(Compiler compiler) {
689 bool canReachAll = compiler.enabledInvokeOn 689 bool canReachAll = compiler.enabledInvokeOn
690 && mask.needsNoSuchMethodHandling(this, compiler); 690 && mask.needsNoSuchMethodHandling(this, compiler);
691 return canReachAll 691 return canReachAll
692 ? new TypedSelector(compiler.typesTask.dynamicType, this, compiler) 692 ? new TypedSelector(compiler.typesTask.dynamicType, this, compiler)
693 : this; 693 : this;
694 } 694 }
695 } 695 }
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