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

Unified Diff: frog/leg/ssa/codegen.dart

Issue 9112012: Implement code generation for === and !==. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix a bug and update status files. Created 8 years, 12 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: frog/leg/ssa/codegen.dart
diff --git a/frog/leg/ssa/codegen.dart b/frog/leg/ssa/codegen.dart
index 524fbddb8f7d1bc0ee879c4fef02b5019bf31956..8bc49c0c82d855dc69fe69e8cc4eaa532b3c7ebd 100644
--- a/frog/leg/ssa/codegen.dart
+++ b/frog/leg/ssa/codegen.dart
@@ -236,6 +236,7 @@ class SsaCodeGenerator implements HVisitor {
visitNegate(HNegate node) => visitInvokeUnary(node, '-');
visitEquals(HEquals node) => visitInvokeBinary(node, '===');
+ visitIdentity(HIdentity node) => visitInvokeBinary(node, '===');
visitLess(HLess node) => visitInvokeBinary(node, '<');
visitLessEqual(HLessEqual node) => visitInvokeBinary(node, '<=');
visitGreater(HGreater node) => visitInvokeBinary(node, '>');

Powered by Google App Engine
This is Rietveld 408576698