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

Issue 583723002: Implement .forEach() on typed arrays (Closed)

Created:
6 years, 3 months ago by aperez
Modified:
6 years, 2 months ago
CC:
Diego Pino, vjaquez
Project:
v8
Visibility:
Public.

Description

Implement .forEach() on typed arrays BUG=v8:3578 LOG=Y

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Remove unneeded check for holes #

Total comments: 4

Patch Set 4 : Make forEach() follow the spec #

Patch Set 5 : Change copyright year to 2014 #

Total comments: 3

Patch Set 6 : Allow transplanting method to other typed arrays, more tests #

Total comments: 2

Patch Set 7 : Move SHOULD_CREATE_WRAPPER() call inside "else" #

Total comments: 5

Patch Set 8 : Improve tests, remove harmony_typedarrays flag #

Total comments: 6

Patch Set 9 : Even more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -0 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A src/harmony-typedarray.js View 1 2 3 4 5 6 7 8 1 chunk +79 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-typedarray.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/typedarrays-foreach.js View 1 2 3 4 5 6 7 8 1 chunk +140 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (2 generated)
aperez
https://codereview.chromium.org/583723002/diff/1/test/mjsunit/harmony/typedarrays-foreach.js File test/mjsunit/harmony/typedarrays-foreach.js (right): https://codereview.chromium.org/583723002/diff/1/test/mjsunit/harmony/typedarrays-foreach.js#newcode39 test/mjsunit/harmony/typedarrays-foreach.js:39: // Respect holes I have to remove this leftover ...
6 years, 3 months ago (2014-09-18 18:18:40 UTC) #2
aperez
https://codereview.chromium.org/583723002/diff/20001/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/583723002/diff/20001/src/harmony-typedarray.js#newcode45 src/harmony-typedarray.js:45: if (i in array) { Also, this check is ...
6 years, 3 months ago (2014-09-18 21:27:19 UTC) #3
wingo
Are there going to be many more of these functions? If not, it seems overkill ...
6 years, 3 months ago (2014-09-19 10:24:26 UTC) #4
aperez
On 2014/09/19 10:24:26, wingo wrote: > Are there going to be many more of these ...
6 years, 3 months ago (2014-09-19 10:38:33 UTC) #5
aperez
In the latest version of the patch set .forEach() should behave as per the spec. ...
6 years, 3 months ago (2014-09-19 15:26:19 UTC) #6
wingo
Looking better, still a couple of comments. https://codereview.chromium.org/583723002/diff/80001/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/583723002/diff/80001/src/harmony-typedarray.js#newcode31 src/harmony-typedarray.js:31: if (!(%_ClassOf(this) ...
6 years, 3 months ago (2014-09-23 18:11:25 UTC) #7
aperez
> https://codereview.chromium.org/583723002/diff/80001/src/harmony-typedarray.js#newcode31 > src/harmony-typedarray.js:31: if (!(%_ClassOf(this) === 'NAME')) { > Not sure this is right; ...
6 years, 2 months ago (2014-09-30 14:17:15 UTC) #8
wingo
https://codereview.chromium.org/583723002/diff/100001/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/583723002/diff/100001/src/harmony-typedarray.js#newcode31 src/harmony-typedarray.js:31: if (!%IsTypedArray(this)) { Normally you don't want runtime calls ...
6 years, 2 months ago (2014-10-07 11:18:44 UTC) #9
aperez
On 2014/10/07 11:18:44, wingo wrote: > https://codereview.chromium.org/583723002/diff/100001/src/harmony-typedarray.js > File src/harmony-typedarray.js (right): > > https://codereview.chromium.org/583723002/diff/100001/src/harmony-typedarray.js#newcode31 > ...
6 years, 2 months ago (2014-10-07 13:39:03 UTC) #10
wingo
Some comments below. Seems strange to specify 9 different copies of the same function, but ...
6 years, 2 months ago (2014-10-07 13:53:34 UTC) #12
aperez
On 2014/10/07 13:53:34, wingo wrote: > Some comments below. Seems strange to specify 9 different ...
6 years, 2 months ago (2014-10-07 14:28:42 UTC) #13
Dmitry Lomov (no reviews)
On 2014/10/07 13:53:34, wingo wrote: > Some comments below. Seems strange to specify 9 different ...
6 years, 2 months ago (2014-10-08 12:14:48 UTC) #14
wingo
On 2014/10/08 12:14:48, Dmitry Lomov (chromium) wrote: > I would actually prefer a runtime function. ...
6 years, 2 months ago (2014-10-08 13:37:58 UTC) #15
Dmitry Lomov (no reviews)
Some comments. Impl looks ok, tests need more work. https://codereview.chromium.org/583723002/diff/120001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/583723002/diff/120001/src/flag-definitions.h#newcode174 src/flag-definitions.h:174: ...
6 years, 2 months ago (2014-10-08 13:57:11 UTC) #16
aperez
On 2014/10/08 13:57:11, Dmitry Lomov (chromium) wrote: > Some comments. Impl looks ok, tests need ...
6 years, 2 months ago (2014-10-14 12:40:10 UTC) #17
Dmitry Lomov (no reviews)
Just a couple more nits https://codereview.chromium.org/583723002/diff/140001/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/583723002/diff/140001/src/harmony-typedarray.js#newcode27 src/harmony-typedarray.js:27: macro TYPED_ARRAY_CONSTRUCTOR(ARRAY_ID, NAME, ELEMENT_SIZE) ...
6 years, 2 months ago (2014-10-14 16:10:25 UTC) #18
aperez
Added more tests as requested. https://codereview.chromium.org/583723002/diff/140001/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/583723002/diff/140001/src/harmony-typedarray.js#newcode27 src/harmony-typedarray.js:27: macro TYPED_ARRAY_CONSTRUCTOR(ARRAY_ID, NAME, ELEMENT_SIZE) ...
6 years, 2 months ago (2014-10-15 15:54:48 UTC) #19
Dmitry Lomov (no reviews)
lgtm, thanks!
6 years, 2 months ago (2014-10-15 17:25:03 UTC) #20
aperez
On 2014/10/15 17:25:03, Dmitry Lomov (chromium) wrote: > lgtm, thanks! No prob. Could you please ...
6 years, 2 months ago (2014-10-16 08:46:28 UTC) #21
wingo
On 2014/10/16 08:46:28, aperez wrote: > On 2014/10/15 17:25:03, Dmitry Lomov (chromium) wrote: > > ...
6 years, 2 months ago (2014-10-16 09:37:01 UTC) #22
wingo (chromium)
6 years, 2 months ago (2014-10-16 10:58:26 UTC) #23
Message was sent while issue was closed.
Committed patchset #9 manually as 24657 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698