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

Side by Side Diff: pkg/compiler/lib/src/common/backend_api.dart

Issue 2692303002: Split InterceptorData (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | 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 dart2js.backend_api; 5 library dart2js.backend_api;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/codegen.dart' show CodegenImpact; 8 import '../common/codegen.dart' show CodegenImpact;
9 import '../common/resolution.dart' show ResolutionImpact; 9 import '../common/resolution.dart' show ResolutionImpact;
10 import '../constants/expressions.dart' show ConstantExpression; 10 import '../constants/expressions.dart' show ConstantExpression;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 ClassEntity get indexingBehaviorClass; 166 ClassEntity get indexingBehaviorClass;
167 167
168 /// Returns the backend superclass for all intercepted classes. This is the 168 /// Returns the backend superclass for all intercepted classes. This is the
169 /// `Interceptor` class. 169 /// `Interceptor` class.
170 ClassEntity get interceptorClass; 170 ClassEntity get interceptorClass;
171 171
172 /// Returns `true` if [element] is a default implementation of `Object.==`. 172 /// Returns `true` if [element] is a default implementation of `Object.==`.
173 /// This either `Object.==`, `Intercepter.==` or `Null.==`. 173 /// This either `Object.==`, `Intercepter.==` or `Null.==`.
174 bool isDefaultEqualityImplementation(MemberEntity element); 174 bool isDefaultEqualityImplementation(MemberEntity element);
175 175
176 /// Returns `true` if [cls] is an intercepted class.
177 // TODO(johnniwinther): Rename this to `isInterceptedClass`.
178 bool isInterceptorClass(ClassEntity cls);
179
180 /// Returns `true` if [cls] is a native class. 176 /// Returns `true` if [cls] is a native class.
181 bool isNativeClass(ClassEntity element); 177 bool isNativeClass(ClassEntity element);
182 178
183 /// Returns `true` if [element] is a native member of a native class. 179 /// Returns `true` if [element] is a native member of a native class.
184 bool isNativeMember(MemberEntity element); 180 bool isNativeMember(MemberEntity element);
185 181
186 /// Returns the type of the constant map implementation for a const map 182 /// Returns the type of the constant map implementation for a const map
187 /// literal of [sourceType]. If [hasProtoKey] the map contains key of value 183 /// literal of [sourceType]. If [hasProtoKey] the map contains key of value
188 /// '__proto__' and if [onlyStringKeys] all keys are string constants. 184 /// '__proto__' and if [onlyStringKeys] all keys are string constants.
189 InterfaceType getConstantMapTypeFor(InterfaceType sourceType, 185 InterfaceType getConstantMapTypeFor(InterfaceType sourceType,
190 {bool hasProtoKey: false, bool onlyStringKeys: false}); 186 {bool hasProtoKey: false, bool onlyStringKeys: false});
191 187
192 /// Returns the type of the constant symbol implementation class. 188 /// Returns the type of the constant symbol implementation class.
193 InterfaceType get symbolType; 189 InterfaceType get symbolType;
194 190
195 /// Returns the field of the constant symbol implementation class that holds 191 /// Returns the field of the constant symbol implementation class that holds
196 /// its internal name. 192 /// its internal name.
197 FieldEntity get symbolField; 193 FieldEntity get symbolField;
198 } 194 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698