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

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

Issue 2732793002: Add NativeDataResolver (Closed)
Patch Set: Fix. Created 3 years, 9 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
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 a native class. 176 /// Returns `true` if [cls] is a native class.
177 bool isNativeClass(ClassEntity element); 177 bool isNativeClass(ClassEntity element);
178 178
179 /// Returns `true` if [element] is a native member of a native class.
180 bool isNativeMember(MemberEntity element);
181
182 /// Returns the type of the constant map implementation for a const map 179 /// Returns the type of the constant map implementation for a const map
183 /// literal of [sourceType]. If [hasProtoKey] the map contains key of value 180 /// literal of [sourceType]. If [hasProtoKey] the map contains key of value
184 /// '__proto__' and if [onlyStringKeys] all keys are string constants. 181 /// '__proto__' and if [onlyStringKeys] all keys are string constants.
185 InterfaceType getConstantMapTypeFor(InterfaceType sourceType, 182 InterfaceType getConstantMapTypeFor(InterfaceType sourceType,
186 {bool hasProtoKey: false, bool onlyStringKeys: false}); 183 {bool hasProtoKey: false, bool onlyStringKeys: false});
187 184
188 /// Returns the type of the constant symbol implementation class. 185 /// Returns the type of the constant symbol implementation class.
189 InterfaceType get symbolType; 186 InterfaceType get symbolType;
190 187
191 /// Returns the field of the constant symbol implementation class that holds 188 /// Returns the field of the constant symbol implementation class that holds
192 /// its internal name. 189 /// its internal name.
193 FieldEntity get symbolField; 190 FieldEntity get symbolField;
194 } 191 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/resolution.dart » ('j') | pkg/compiler/lib/src/js_backend/backend.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698