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

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

Issue 1559233002: WIP: Compute constant expressions in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/constructors.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 d99d795946700c3b8580fba918d6880352f36823..10830db6347fb541c17a1934d1a87e1118093b43 100644
--- a/pkg/compiler/lib/src/constants/constant_system.dart
+++ b/pkg/compiler/lib/src/constants/constant_system.dart
@@ -49,6 +49,7 @@ abstract class ConstantSystem {
BinaryOperation get multiply;
UnaryOperation get negate;
UnaryOperation get not;
+ BinaryOperation get notEqual;
BinaryOperation get shiftLeft;
BinaryOperation get shiftRight;
BinaryOperation get subtract;
@@ -73,6 +74,7 @@ abstract class ConstantSystem {
// TODO(johnniwinther): Remove the need for [compiler].
ConstantValue createType(Compiler compiler,
DartType type);
+ ConstantValue createSymbol(Compiler compiler, String text);
// We need to special case the subtype check for JavaScript constant
// system because an int is a double at runtime.
@@ -118,6 +120,7 @@ abstract class ConstantSystem {
case BinaryOperatorKind.GT: return greater;
case BinaryOperatorKind.GTEQ: return greaterEqual;
case BinaryOperatorKind.EQ: return equal;
+ case BinaryOperatorKind.NOT_EQ: return notEqual;
default: return null;
}
}
« no previous file with comments | « pkg/compiler/lib/src/constant_system_dart.dart ('k') | pkg/compiler/lib/src/constants/constructors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698