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

Unified Diff: pkg/compiler/lib/src/constants/constant_system.dart

Issue 1121233002: Add ConstantExpression.evaluate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 5 years, 7 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 | « pkg/compiler/lib/src/constant_system_dart.dart ('k') | pkg/compiler/lib/src/constants/expressions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/constants/constant_system.dart
diff --git a/pkg/compiler/lib/src/constants/constant_system.dart b/pkg/compiler/lib/src/constants/constant_system.dart
index e8260b994dec4edcb6e3ab787e058049a48864c7..085fe293955b60e0ff235f18b1d61b75e505a1ef 100644
--- a/pkg/compiler/lib/src/constants/constant_system.dart
+++ b/pkg/compiler/lib/src/constants/constant_system.dart
@@ -61,10 +61,16 @@ abstract class ConstantSystem {
ConstantValue createString(DartString string);
ConstantValue createBool(bool value);
ConstantValue createNull();
+ ConstantValue createList(InterfaceType type,
+ List<ConstantValue> values);
+ // TODO(johnniwinther): Remove the need for [compiler].
ConstantValue createMap(Compiler compiler,
InterfaceType type,
List<ConstantValue> keys,
List<ConstantValue> values);
+ // TODO(johnniwinther): Remove the need for [compiler].
+ ConstantValue createType(Compiler compiler,
+ DartType type);
// We need to special case the subtype check for JavaScript constant
// system because an int is a double at runtime.
« no previous file with comments | « pkg/compiler/lib/src/constant_system_dart.dart ('k') | pkg/compiler/lib/src/constants/expressions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698