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

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

Issue 247863005: Revert "Insert checks before deferred calls and accesses." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 elements; 5 library elements;
6 6
7 7
8 import '../tree/tree.dart'; 8 import '../tree/tree.dart';
9 import '../util/util.dart'; 9 import '../util/util.dart';
10 import '../resolution/resolution.dart'; 10 import '../resolution/resolution.dart';
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 DartType get type; 824 DartType get type;
825 FunctionSignature get functionSignature; 825 FunctionSignature get functionSignature;
826 FunctionElement get redirectionTarget; 826 FunctionElement get redirectionTarget;
827 FunctionElement get defaultImplementation; 827 FunctionElement get defaultImplementation;
828 828
829 FunctionElement get patch; 829 FunctionElement get patch;
830 FunctionElement get origin; 830 FunctionElement get origin;
831 831
832 bool get isRedirectingFactory; 832 bool get isRedirectingFactory;
833 833
834 /// Used to retrieve a link to the abstract field element representing this
835 /// element.
836 AbstractFieldElement get abstractField;
837
838 /** 834 /**
839 * Compute the type of the target of a constructor for an instantiation site 835 * Compute the type of the target of a constructor for an instantiation site
840 * with type [:newType:]. 836 * with type [:newType:].
841 */ 837 */
842 InterfaceType computeTargetType(InterfaceType newType); 838 InterfaceType computeTargetType(InterfaceType newType);
843 839
844 // TODO(kasperl): These are bit fishy. Do we really need them? 840 // TODO(kasperl): These are bit fishy. Do we really need them?
845 void set patch(FunctionElement value); 841 void set patch(FunctionElement value);
846 void set origin(FunctionElement value); 842 void set origin(FunctionElement value);
847 void set defaultImplementation(FunctionElement value); 843 void set defaultImplementation(FunctionElement value);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 int get resolutionState; 1046 int get resolutionState;
1051 Token get beginToken; 1047 Token get beginToken;
1052 Token get endToken; 1048 Token get endToken;
1053 1049
1054 // TODO(kasperl): Try to get rid of these. 1050 // TODO(kasperl): Try to get rid of these.
1055 void set annotatedElement(Element value); 1051 void set annotatedElement(Element value);
1056 1052
1057 MetadataAnnotation ensureResolved(Compiler compiler); 1053 MetadataAnnotation ensureResolved(Compiler compiler);
1058 } 1054 }
1059 1055
1060 // TODO(johnniwinther): Remove this element.
1061 abstract class VoidElement extends Element {} 1056 abstract class VoidElement extends Element {}
1062 1057
1063 /// An [Element] that has a type. 1058 /// An [Element] that has a type.
1064 abstract class TypedElement extends Element { 1059 abstract class TypedElement extends Element {
1065 DartType get type; 1060 DartType get type;
1066 } 1061 }
1067 1062
1068 /// A [MemberSignature] is a member of an interface. 1063 /// A [MemberSignature] is a member of an interface.
1069 /// 1064 ///
1070 /// A signature is either a method or a getter or setter, possibly implicitly 1065 /// A signature is either a method or a getter or setter, possibly implicitly
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 InterfaceType get declarer; 1126 InterfaceType get declarer;
1132 1127
1133 /// Returns `true` if this member is static. 1128 /// Returns `true` if this member is static.
1134 bool get isStatic; 1129 bool get isStatic;
1135 1130
1136 /// Returns `true` if this member is a getter or setter implicitly declared 1131 /// Returns `true` if this member is a getter or setter implicitly declared
1137 /// by a field. 1132 /// by a field.
1138 bool get isDeclaredByField; 1133 bool get isDeclaredByField;
1139 } 1134 }
1140 1135
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698