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

Issue 1160453003: Fix 23563: double unary- operator unstable for NANs (Closed)

Created:
5 years, 6 months ago by srdjan
Modified:
5 years, 6 months ago
Reviewers:
koda, Anders Johnsen
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Anders Johnsen
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix 23563: double unary- operator unstable for NANs BUG= R=koda@google.com Committed: https://github.com/dart-lang/sdk/commit/c0824e77255522a5f3e981b0ea88f7ccee60259a

Patch Set 1 #

Patch Set 2 : z #

Patch Set 3 : g #

Total comments: 4

Patch Set 4 : d #

Patch Set 5 : s #

Patch Set 6 : a #

Patch Set 7 : Cleanuo #

Total comments: 7

Patch Set 8 : c #

Patch Set 9 : c #

Patch Set 10 : c #

Total comments: 2

Patch Set 11 : s #

Patch Set 12 : s #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -6 lines) Patch
M runtime/lib/double.cc View 1 2 3 4 5 6 7 11 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/lib/double.dart View 1 2 3 4 5 6 1 chunk +4 lines, -5 lines 0 comments Download
M runtime/platform/globals.h View 1 2 3 4 5 6 7 11 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M tests/corelib/nan_infinity_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A tests/language/nan_identical_test.dart View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
srdjan
5 years, 6 months ago (2015-06-02 20:43:49 UTC) #2
koda
https://codereview.chromium.org/1160453003/diff/40001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://codereview.chromium.org/1160453003/diff/40001/runtime/lib/double.cc#newcode309 runtime/lib/double.cc:309: res = NAN; Here, you are also normalizing to ...
5 years, 6 months ago (2015-06-02 21:20:57 UTC) #3
koda
On 2015/06/02 21:20:57, koda wrote: > https://codereview.chromium.org/1160453003/diff/40001/runtime/lib/double.cc > File runtime/lib/double.cc (right): > > https://codereview.chromium.org/1160453003/diff/40001/runtime/lib/double.cc#newcode309 > ...
5 years, 6 months ago (2015-06-02 21:27:36 UTC) #4
srdjan
Thanks, PTAL. https://codereview.chromium.org/1160453003/diff/40001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://codereview.chromium.org/1160453003/diff/40001/runtime/lib/double.cc#newcode309 runtime/lib/double.cc:309: res = NAN; On 2015/06/02 21:20:57, koda ...
5 years, 6 months ago (2015-06-02 22:32:11 UTC) #5
koda
LGTM if you add the -(-x) test. https://codereview.chromium.org/1160453003/diff/120001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://codereview.chromium.org/1160453003/diff/120001/runtime/lib/double.cc#newcode308 runtime/lib/double.cc:308: *(reinterpret_cast<const int64_t*>(&in_val)) ...
5 years, 6 months ago (2015-06-02 23:41:02 UTC) #6
srdjan
https://codereview.chromium.org/1160453003/diff/120001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://codereview.chromium.org/1160453003/diff/120001/runtime/lib/double.cc#newcode308 runtime/lib/double.cc:308: *(reinterpret_cast<const int64_t*>(&in_val)) ^ 0x8000000000000000LL; On 2015/06/02 23:41:02, koda wrote: ...
5 years, 6 months ago (2015-06-03 00:02:52 UTC) #7
Anders Johnsen
DBC https://codereview.chromium.org/1160453003/diff/170001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://codereview.chromium.org/1160453003/diff/170001/runtime/lib/double.cc#newcode310 runtime/lib/double.cc:310: return Double::New(out_val); I may have missed out here, ...
5 years, 6 months ago (2015-06-03 06:37:37 UTC) #9
koda
https://codereview.chromium.org/1160453003/diff/170001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://codereview.chromium.org/1160453003/diff/170001/runtime/lib/double.cc#newcode310 runtime/lib/double.cc:310: return Double::New(out_val); On 2015/06/03 06:37:36, Anders Johnsen wrote: > ...
5 years, 6 months ago (2015-06-03 17:28:11 UTC) #10
srdjan
On 2015/06/03 17:28:11, koda wrote: > https://codereview.chromium.org/1160453003/diff/170001/runtime/lib/double.cc > File runtime/lib/double.cc (right): > > https://codereview.chromium.org/1160453003/diff/170001/runtime/lib/double.cc#newcode310 > ...
5 years, 6 months ago (2015-06-03 17:56:40 UTC) #11
srdjan
5 years, 6 months ago (2015-06-03 18:00:39 UTC) #12
Message was sent while issue was closed.
Committed patchset #12 (id:210001) manually as
c0824e77255522a5f3e981b0ea88f7ccee60259a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698