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

Unified Diff: lib/compiler/implementation/ssa/codegen.dart

Issue 9967001: Fix bug where constants were not correctly canonicalized. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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: lib/compiler/implementation/ssa/codegen.dart
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
index f91de80334263c91b8e09dd07330f177e3ae3da9..92b825c704b16b424514ee9c85630da0a4b577bb 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -831,7 +831,7 @@ class SsaCodeGenerator implements HVisitor {
node.constant.writeJsCode(buffer, handler);
ngeoffray 2012/03/30 08:28:32 How about this one? Being a num helps you know it'
floitsch 2012/03/30 18:11:49 Done.
buffer.add(')');
} else {
- node.constant.writeJsCode(buffer, handler);
+ node.constant.writeCanonicalizedJsCode(buffer, handler);
}
} else {
buffer.add(compiler.namer.CURRENT_ISOLATE);

Powered by Google App Engine
This is Rietveld 408576698