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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 12079074: When comparing symbols during the range analysis check that both of them are not affected by side-e… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index d4b82ea0c90d71b83f220c9bd4237e93c9f23212..6eb0613ccfb46e6ee17813a20f77b66a864b84fa 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -2124,7 +2124,9 @@ static Definition* UnwrapConstraint(Definition* defn) {
static bool AreEqualDefinitions(Definition* a, Definition* b) {
a = UnwrapConstraint(a);
b = UnwrapConstraint(b);
- return (a == b) || (!a->AffectedBySideEffect() && a->Equals(b));
+ return (a == b) || (!a->AffectedBySideEffect() &&
Florian Schneider 2013/01/30 13:02:37 I'd reformat this: return (a == b) || (!a->Af
Vyacheslav Egorov (Google) 2013/01/30 13:04:56 I don't like when one lines ends with && and start
+ !b->AffectedBySideEffect() &&
+ a->Equals(b));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698