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

Issue 1133503003: Factor out core of Array.forEach and .every, for use in TypedArrays (Closed)

Created:
5 years, 7 months ago by dehrenberg
Modified:
5 years, 7 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Factor out core of Array.forEach and .every, for use in TypedArrays The idea is to make this the model for future TypedArray methods. A possible downside could be lower array method performance if everything gets polymorhpic (but if enough inlining happens, it should still be fast), but on the upside, this change means that the TypedArray methods won't create as much code size bloat. BUG=v8:3578 LOG=Y R=adamk@chromium.org CC=arv@chromium.org, caitpotter88@gmail.com Committed: https://crrev.com/1ebbaaa0362ffc295fc4121bead8bb84a3cf5ec6 Cr-Commit-Position: refs/heads/master@{#28351}

Patch Set 1 #

Total comments: 5

Patch Set 2 : using HAS_INDEX even with typedarray, simplifying things #

Total comments: 3

Patch Set 3 : fix test #

Patch Set 4 : extend every test #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -72 lines) Patch
M src/array.js View 1 2 3 4 6 chunks +28 lines, -18 lines 0 comments Download
M src/harmony-typedarray.js View 1 2 3 4 1 chunk +8 lines, -51 lines 0 comments Download
M test/mjsunit/harmony/typedarrays-every.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M test/mjsunit/harmony/typedarrays-foreach.js View 1 2 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
dehrenberg
5 years, 7 months ago (2015-05-11 17:21:01 UTC) #1
arv (Not doing code reviews)
I like. We should either use a macro or %SetInlineBuiltinFlag. https://codereview.chromium.org/1133503003/diff/1/src/array.js File src/array.js (right): https://codereview.chromium.org/1133503003/diff/1/src/array.js#newcode1185 ...
5 years, 7 months ago (2015-05-11 17:45:01 UTC) #3
caitp (gmail)
https://codereview.chromium.org/1133503003/diff/1/src/array.js File src/array.js (right): https://codereview.chromium.org/1133503003/diff/1/src/array.js#newcode1197 src/array.js:1197: if (!check_has_index || HAS_INDEX(array, i, is_array)) { On 2015/05/11 ...
5 years, 7 months ago (2015-05-11 17:47:25 UTC) #5
adamk
https://codereview.chromium.org/1133503003/diff/1/src/array.js File src/array.js (right): https://codereview.chromium.org/1133503003/diff/1/src/array.js#newcode1197 src/array.js:1197: if (!check_has_index || HAS_INDEX(array, i, is_array)) { I think ...
5 years, 7 months ago (2015-05-11 19:54:28 UTC) #6
dehrenberg
On 2015/05/11 19:54:28, adamk wrote: > https://codereview.chromium.org/1133503003/diff/1/src/array.js > File src/array.js (right): > > https://codereview.chromium.org/1133503003/diff/1/src/array.js#newcode1197 > ...
5 years, 7 months ago (2015-05-11 22:28:12 UTC) #7
adamk
Thanks for the simplification. I do suspect that this changes behavior of the neutered-during-forEach case, ...
5 years, 7 months ago (2015-05-11 22:39:24 UTC) #8
dehrenberg
On 2015/05/11 22:39:24, adamk wrote: > Thanks for the simplification. I do suspect that this ...
5 years, 7 months ago (2015-05-11 23:53:11 UTC) #9
adamk
Please make the same test alteration in the test for TypedArrayEvery. Once that's done, lgtm.
5 years, 7 months ago (2015-05-12 00:00:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133503003/60001
5 years, 7 months ago (2015-05-12 00:11:43 UTC) #13
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/287)
5 years, 7 months ago (2015-05-12 00:12:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133503003/80001
5 years, 7 months ago (2015-05-12 00:35:41 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-12 01:32:33 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 01:32:46 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1ebbaaa0362ffc295fc4121bead8bb84a3cf5ec6
Cr-Commit-Position: refs/heads/master@{#28351}

Powered by Google App Engine
This is Rietveld 408576698