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

Issue 2865113005: [runtime function] Fix IndexOf when start is -Infinity (Closed)

Created:
3 years, 7 months ago by predrag.rudic
Modified:
3 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[runtime function] Fix IndexOf when start is -Infinity By C++ standard, behaviour is undedined when converting -Infinity to integer. This patch assures correct behaviour in this case on all platforms. BUG= Review-Url: https://codereview.chromium.org/2865113005 Cr-Commit-Position: refs/heads/master@{#45220} Committed: https://chromium.googlesource.com/v8/v8/+/a1f00971a183e8a803302ff29065774249d8a132

Patch Set 1 #

Total comments: 4

Patch Set 2 : Corrected #

Total comments: 2

Patch Set 3 : Corrected2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M src/runtime/runtime-array.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 19 (11 generated)
predrag.rudic
PTAL
3 years, 7 months ago (2017-05-09 09:58:06 UTC) #4
Jakob Kummerow
https://codereview.chromium.org/2865113005/diff/1/src/runtime/runtime-array.cc File src/runtime/runtime-array.cc (right): https://codereview.chromium.org/2865113005/diff/1/src/runtime/runtime-array.cc#newcode573 src/runtime/runtime-array.cc:573: fp < static_cast<double>(std::numeric_limits<int64_t>::max()))) { You don't need the second ...
3 years, 7 months ago (2017-05-09 11:03:32 UTC) #5
predrag.rudic
PTAL https://codereview.chromium.org/2865113005/diff/1/src/runtime/runtime-array.cc File src/runtime/runtime-array.cc (right): https://codereview.chromium.org/2865113005/diff/1/src/runtime/runtime-array.cc#newcode573 src/runtime/runtime-array.cc:573: fp < static_cast<double>(std::numeric_limits<int64_t>::max()))) { On 2017/05/09 11:03:32, Jakob ...
3 years, 7 months ago (2017-05-09 12:43:08 UTC) #6
Jakob Kummerow
LGTM https://codereview.chromium.org/2865113005/diff/20001/src/runtime/runtime-array.cc File src/runtime/runtime-array.cc (right): https://codereview.chromium.org/2865113005/diff/20001/src/runtime/runtime-array.cc#newcode576 src/runtime/runtime-array.cc:576: start_from = fp = std::numeric_limits<int64_t>::min(); nit: assigning fp ...
3 years, 7 months ago (2017-05-09 15:04:23 UTC) #7
predrag.rudic
https://codereview.chromium.org/2865113005/diff/20001/src/runtime/runtime-array.cc File src/runtime/runtime-array.cc (right): https://codereview.chromium.org/2865113005/diff/20001/src/runtime/runtime-array.cc#newcode576 src/runtime/runtime-array.cc:576: start_from = fp = std::numeric_limits<int64_t>::min(); On 2017/05/09 15:04:23, Jakob ...
3 years, 7 months ago (2017-05-09 15:15:40 UTC) #8
Camillo Bruni
lgtm
3 years, 7 months ago (2017-05-09 15:23:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2865113005/40001
3 years, 7 months ago (2017-05-10 08:31:54 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 08:34:42 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/a1f00971a183e8a803302ff29065774249d...

Powered by Google App Engine
This is Rietveld 408576698