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

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

Issue 10692087: Reapply change to update dart2js operator equals semantics to follow (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Whoops, fix eqB to use === true Created 8 years, 5 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/nodes.dart
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index 0e075d89c0d78aa0e2e4026d2deb1ba016b51a3f..750b857eaefe3ebe83815cb9b6a259145516d890 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -2042,7 +2042,9 @@ class HEquals extends HRelational {
// All primitive types have === semantics.
// Note that this includes all constants except the user-constructed
// objects.
- return left.isConstantNull() || left.propagatedType.isPrimitive();
+ return left.propagatedType.isPrimitive() ||
+ left.isConstantNull() ||
+ right.isConstantNull();
}
HType computeTypeFromInputTypes() {

Powered by Google App Engine
This is Rietveld 408576698