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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart

Issue 1070293004: Use UnaryOperator and BinaryOperator in ConstantSystem. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleanup Created 5 years, 8 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
Index: pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart b/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart
index 06052a966b77d58284faec0019c4913f1c3cab72..57add3952f53969bb09047fac7cde4dab4e16e5d 100644
--- a/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart
@@ -1255,6 +1255,12 @@ class ConstantEmitter
}
@override
+ Expression visitIdentical(IdenticalConstantExpression exp,
+ BuilderContext<Statement> context) {
+ return handlePrimitiveConstant(exp.value);
+ }
+
+ @override
Expression visitConditional(ConditionalConstantExpression exp,
BuilderContext<Statement> context) {
if (exp.condition.value.isTrue) {

Powered by Google App Engine
This is Rietveld 408576698