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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/unsugar.dart

Issue 1050133006: Add structural equality to ConstantExpression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased 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/js_backend/codegen/unsugar.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart b/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
index 5560df5660e0f2f7e6c1806b82ee3fa5892420c3..f439e95de4fdab81de1f84f64b2903319cbc4feb 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
@@ -37,7 +37,8 @@ class UnsugarVisitor extends RecursiveVisitor {
Constant get trueConstant {
return new Constant(
- new PrimitiveConstantExpression(
+ new BoolConstantExpression(
+ true,
new TrueConstantValue()));
}
@@ -135,7 +136,7 @@ class UnsugarVisitor extends RecursiveVisitor {
Primitive makeNull() {
NullConstantValue nullConst = new NullConstantValue();
- return new Constant(new PrimitiveConstantExpression(nullConst));
+ return new Constant(new NullConstantExpression(nullConst));
}
processInvokeMethodDirectly(InvokeMethodDirectly node) {
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/js_backend/type_variable_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698