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

Issue 12079074: When comparing symbols during the range analysis check that both of them are not affected by side-e… (Closed)

Created:
7 years, 10 months ago by Vyacheslav Egorov (Google)
Modified:
7 years, 10 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org
Visibility:
Public.

Description

When comparing symbols during the range analysis check that both of them are not affected by side-effect. R=fschneider@google.com BUG=dart:8197 Committed: https://code.google.com/p/dart/source/detail?r=17840

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M runtime/vm/intermediate_language.cc View 1 chunk +3 lines, -1 line 2 comments Download

Messages

Total messages: 3 (0 generated)
Vyacheslav Egorov (Google)
7 years, 10 months ago (2013-01-30 12:56:46 UTC) #1
Florian Schneider
lgtm https://codereview.chromium.org/12079074/diff/1/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/12079074/diff/1/runtime/vm/intermediate_language.cc#newcode2127 runtime/vm/intermediate_language.cc:2127: return (a == b) || (!a->AffectedBySideEffect() && I'd ...
7 years, 10 months ago (2013-01-30 13:02:36 UTC) #2
Vyacheslav Egorov (Google)
7 years, 10 months ago (2013-01-30 13:04:55 UTC) #3
https://codereview.chromium.org/12079074/diff/1/runtime/vm/intermediate_langu...
File runtime/vm/intermediate_language.cc (right):

https://codereview.chromium.org/12079074/diff/1/runtime/vm/intermediate_langu...
runtime/vm/intermediate_language.cc:2127: return (a == b) ||
(!a->AffectedBySideEffect() &&
On 2013/01/30 13:02:37, Florian Schneider wrote:
> I'd reformat this:
> 
> return (a == b)
>     || (!a->AffectedBySideEffect() &&
>         !b->AffectedBySideEffect() &&
>         a->Equals(b));

I don't like when one lines ends with && and starts with dangling ||.

Powered by Google App Engine
This is Rietveld 408576698