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

Issue 1154423014: Implement %TypedArray%.prototype.{reduce,reduceRight} (Closed)

Created:
5 years, 6 months ago by dehrenberg
Modified:
5 years, 6 months ago
Reviewers:
adamk
CC:
v8-dev, arv (Not doing code reviews)
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Implement %TypedArray%.prototype.{reduce,reduceRight} This patch implements the last two methods on TypedArrays. These were previously committed and led to a test failure. BUG=v8:3578 LOG=Y R=adamk Committed: https://crrev.com/95d779ecc9816ac20c1565bebeeac6a1ef29f1c7 Cr-Commit-Position: refs/heads/master@{#28773}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix test flagwq #

Patch Set 3 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -14 lines) Patch
M src/array.js View 1 2 4 chunks +27 lines, -14 lines 0 comments Download
M src/harmony-typedarray.js View 1 2 4 chunks +28 lines, -0 lines 0 comments Download
M src/prologue.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/typedarray-reduce.js View 1 1 chunk +256 lines, -0 lines 1 comment Download

Messages

Total messages: 19 (7 generated)
dehrenberg
This has been submitted before, and the patch here is just a rebase. It was ...
5 years, 6 months ago (2015-06-02 15:20:42 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1154423014/1
5 years, 6 months ago (2015-06-02 17:11:28 UTC) #3
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 6 months ago (2015-06-02 17:11:31 UTC) #5
adamk
lgtm % test nit https://codereview.chromium.org/1154423014/diff/1/test/mjsunit/harmony/typedarray-reduce.js File test/mjsunit/harmony/typedarray-reduce.js (right): https://codereview.chromium.org/1154423014/diff/1/test/mjsunit/harmony/typedarray-reduce.js#newcode5 test/mjsunit/harmony/typedarray-reduce.js:5: // Flags: --harmony-arrays --allow-natives-syntax Doesn't ...
5 years, 6 months ago (2015-06-02 18:28:14 UTC) #6
dehrenberg
https://codereview.chromium.org/1154423014/diff/1/test/mjsunit/harmony/typedarray-reduce.js File test/mjsunit/harmony/typedarray-reduce.js (right): https://codereview.chromium.org/1154423014/diff/1/test/mjsunit/harmony/typedarray-reduce.js#newcode5 test/mjsunit/harmony/typedarray-reduce.js:5: // Flags: --harmony-arrays --allow-natives-syntax On 2015/06/02 18:28:14, adamk wrote: ...
5 years, 6 months ago (2015-06-02 22:44:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1154423014/20001
5 years, 6 months ago (2015-06-02 22:45:11 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/967)
5 years, 6 months ago (2015-06-02 22:46:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1154423014/40001
5 years, 6 months ago (2015-06-02 22:57:11 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-03 05:01:37 UTC) #16
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/95d779ecc9816ac20c1565bebeeac6a1ef29f1c7 Cr-Commit-Position: refs/heads/master@{#28773}
5 years, 6 months ago (2015-06-03 05:01:49 UTC) #17
Benedikt Meurer
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1162043008/ by bmeurer@chromium.org. ...
5 years, 6 months ago (2015-06-03 05:29:01 UTC) #18
adamk
5 years, 6 months ago (2015-06-04 01:03:14 UTC) #19
Message was sent while issue was closed.
I managed to reproduce this locally.

It might be related to https://code.google.com/p/v8/issues/detail?id=3815

And it definitely seems unrelated to typed arrays, so if you modify the test to
avoid using a property whose key is NaN you should be good.

https://codereview.chromium.org/1154423014/diff/40001/test/mjsunit/harmony/ty...
File test/mjsunit/harmony/typedarray-reduce.js (right):

https://codereview.chromium.org/1154423014/diff/40001/test/mjsunit/harmony/ty...
test/mjsunit/harmony/typedarray-reduce.js:170: arrayPlus[NaN] = NaN;
If I comment out this line the test passes.

Powered by Google App Engine
This is Rietveld 408576698