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

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

Issue 2684783003: Refactor ConstantSystem (Closed)
Patch Set: Updated cf. comments. 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/compile_time_constants.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 '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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698