| OLD | NEW |
| 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 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/codegen.dart' show CodegenImpact; | 10 import '../common/codegen.dart' show CodegenImpact; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 /// Returns `true` if [cls] is an intercepted class. | 203 /// Returns `true` if [cls] is an intercepted class. |
| 204 // TODO(johnniwinther): Rename this to `isInterceptedClass`. | 204 // TODO(johnniwinther): Rename this to `isInterceptedClass`. |
| 205 bool isInterceptorClass(ClassEntity cls); | 205 bool isInterceptorClass(ClassEntity cls); |
| 206 | 206 |
| 207 /// Returns `true` if [cls] is a native class. | 207 /// Returns `true` if [cls] is a native class. |
| 208 bool isNativeClass(ClassEntity element); | 208 bool isNativeClass(ClassEntity element); |
| 209 | 209 |
| 210 /// Returns `true` if [element] is a native member of a native class. | 210 /// Returns `true` if [element] is a native member of a native class. |
| 211 bool isNativeMember(MemberEntity element); | 211 bool isNativeMember(MemberEntity element); |
| 212 |
| 213 /// Returns the type of the constant map implementation for a const map |
| 214 /// literal of [sourceType]. If [hasProtoKey] the map contains key of value |
| 215 /// '__proto__' and if [onlyStringKeys] all keys are string constants. |
| 216 InterfaceType getConstantMapTypeFor(InterfaceType sourceType, |
| 217 {bool hasProtoKey: false, bool onlyStringKeys: false}); |
| 218 |
| 219 /// Returns the type of the constant symbol implementation class. |
| 220 InterfaceType get symbolType; |
| 221 |
| 222 /// Returns the field of the constant symbol implementation class that holds |
| 223 /// its internal name. |
| 224 FieldEntity get symbolField; |
| 212 } | 225 } |
| OLD | NEW |