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

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

Issue 10905234: Fix for issue 4921: ad the generic type info to a List when we create it. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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('universe'); 5 #library('universe');
6 6
7 #import('../closure.dart'); 7 #import('../closure.dart');
8 #import('../elements/elements.dart'); 8 #import('../elements/elements.dart');
9 #import('../leg.dart'); 9 #import('../leg.dart');
10 #import('../scanner/scannerlib.dart'); 10 #import('../scanner/scannerlib.dart');
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 return hasMatchingSelector(invokedSetters[member.name], member, compiler); 81 return hasMatchingSelector(invokedSetters[member.name], member, compiler);
82 } 82 }
83 83
84 bool hasFieldGetter(Element member, Compiler compiler) { 84 bool hasFieldGetter(Element member, Compiler compiler) {
85 return hasMatchingSelector(fieldGetters[member.name], member, compiler); 85 return hasMatchingSelector(fieldGetters[member.name], member, compiler);
86 } 86 }
87 87
88 bool hasFieldSetter(Element member, Compiler compiler) { 88 bool hasFieldSetter(Element member, Compiler compiler) {
89 return hasMatchingSelector(fieldSetters[member.name], member, compiler); 89 return hasMatchingSelector(fieldSetters[member.name], member, compiler);
90 } 90 }
91
92 bool hasIsCheck(DartType type) => isChecks.contains(type);
91 } 93 }
92 94
93 class SelectorKind { 95 class SelectorKind {
94 final String name; 96 final String name;
95 const SelectorKind(this.name); 97 const SelectorKind(this.name);
96 98
97 static const SelectorKind GETTER = const SelectorKind('getter'); 99 static const SelectorKind GETTER = const SelectorKind('getter');
98 static const SelectorKind SETTER = const SelectorKind('setter'); 100 static const SelectorKind SETTER = const SelectorKind('setter');
99 static const SelectorKind CALL = const SelectorKind('call'); 101 static const SelectorKind CALL = const SelectorKind('call');
100 static const SelectorKind OPERATOR = const SelectorKind('operator'); 102 static const SelectorKind OPERATOR = const SelectorKind('operator');
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 431
430 if (!self.isInterface() && self.isSubclassOf(other)) { 432 if (!self.isInterface() && self.isSubclassOf(other)) {
431 // Resolve an invocation of [element.name] on [self]. If it 433 // Resolve an invocation of [element.name] on [self]. If it
432 // is found, this selector is a candidate. 434 // is found, this selector is a candidate.
433 return hasElementIn(self, element) && appliesUntyped(element, compiler); 435 return hasElementIn(self, element) && appliesUntyped(element, compiler);
434 } 436 }
435 437
436 return false; 438 return false;
437 } 439 }
438 } 440 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698