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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common/backend_api.dart
diff --git a/pkg/compiler/lib/src/common/backend_api.dart b/pkg/compiler/lib/src/common/backend_api.dart
index 197df20cee1153748656e8d8a8d6eed9afe081dc..e13cebf633655a7b666c7fe40c6ee6fb00cd3d8c 100644
--- a/pkg/compiler/lib/src/common/backend_api.dart
+++ b/pkg/compiler/lib/src/common/backend_api.dart
@@ -209,4 +209,17 @@ abstract class BackendClasses {
/// Returns `true` if [element] is a native member of a native class.
bool isNativeMember(MemberEntity element);
+
+ /// Returns the type of the constant map implementation for a const map
+ /// literal of [sourceType]. If [hasProtoKey] the map contains key of value
+ /// '__proto__' and if [onlyStringKeys] all keys are string constants.
+ InterfaceType getConstantMapTypeFor(InterfaceType sourceType,
+ {bool hasProtoKey: false, bool onlyStringKeys: false});
+
+ /// Returns the type of the constant symbol implementation class.
+ InterfaceType get symbolType;
+
+ /// Returns the field of the constant symbol implementation class that holds
+ /// its internal name.
+ FieldEntity get symbolField;
}
« 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