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

Issue 2400103002: Fix DBC double comparisons for NaN. (Closed)

Created:
4 years, 2 months ago by Florian Schneider
Modified:
4 years, 2 months ago
Reviewers:
zra
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix DBC double comparisons for NaN. Because NaN is not handled in a separate branch (like on other architetures - e.g. branch-on-parity-flag on ia32), and every comparison with NaN returns false, except "!=" we can't flip the branch condition in the same way for double compares like we do for integer compares. We could re-order blocks to always make the false-successor the fall-through, but for now I just disable flipping the branch condition for double compares. BUG=#27481 R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/e013aaa511fcd4cf1f593e801845d2c30220896e

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -13 lines) Patch
M runtime/vm/intermediate_language_dbc.cc View 3 chunks +7 lines, -10 lines 2 comments Download
M tests/lib/lib.status View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Florian Schneider
4 years, 2 months ago (2016-10-06 23:59:57 UTC) #2
zra
lgtm w/ question https://codereview.chromium.org/2400103002/diff/1/runtime/vm/intermediate_language_dbc.cc File runtime/vm/intermediate_language_dbc.cc (right): https://codereview.chromium.org/2400103002/diff/1/runtime/vm/intermediate_language_dbc.cc#newcode1791 runtime/vm/intermediate_language_dbc.cc:1791: // For double comparisons we can't ...
4 years, 2 months ago (2016-10-07 02:14:43 UTC) #3
Florian Schneider
https://codereview.chromium.org/2400103002/diff/1/runtime/vm/intermediate_language_dbc.cc File runtime/vm/intermediate_language_dbc.cc (right): https://codereview.chromium.org/2400103002/diff/1/runtime/vm/intermediate_language_dbc.cc#newcode1791 runtime/vm/intermediate_language_dbc.cc:1791: // For double comparisons we can't flip the condition ...
4 years, 2 months ago (2016-10-07 16:49:33 UTC) #4
Florian Schneider
On 2016/10/07 16:49:33, Florian Schneider wrote: > https://codereview.chromium.org/2400103002/diff/1/runtime/vm/intermediate_language_dbc.cc > File runtime/vm/intermediate_language_dbc.cc (right): > > https://codereview.chromium.org/2400103002/diff/1/runtime/vm/intermediate_language_dbc.cc#newcode1791 ...
4 years, 2 months ago (2016-10-07 21:42:51 UTC) #5
Florian Schneider
4 years, 2 months ago (2016-10-07 22:30:27 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
e013aaa511fcd4cf1f593e801845d2c30220896e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698