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

Issue 1131113002: TypedArray.prototype.copyWithin method (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

TypedArray.prototype.copyWithin method This patch adds the copyWithin method to TypedArrays. For the first pass, the internals of Array.copyWithin are used. Eventually, a more efficient form based on memcpy could be used instead. BUG=v8:3578 LOG=Y R=adamk@chromium.org, arv@chromium.org, caitpotter88@gmail.com Committed: https://crrev.com/a863c4d3d82f72cc5f7e54eaf66a2a4336f1fdc2 Cr-Commit-Position: refs/heads/master@{#28381}

Patch Set 1 #

Total comments: 4

Patch Set 2 : dedup'd copyWithin #

Total comments: 3

Patch Set 3 : fix minor issues #

Patch Set 4 : better description #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -7 lines) Patch
M src/harmony-array.js View 1 3 chunks +14 lines, -7 lines 0 comments Download
M src/harmony-typedarray.js View 1 2 chunks +11 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/typedarray-copywithin.js View 1 2 1 chunk +175 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (1 generated)
dehrenberg
This is based on https://codereview.chromium.org/1126313003/ so it includes that patch for now, until that one ...
5 years, 7 months ago (2015-05-07 20:05:41 UTC) #1
caitp (gmail)
From a quick glance it looks good, will look in more detail in a few ...
5 years, 7 months ago (2015-05-07 20:13:20 UTC) #2
adamk
https://codereview.chromium.org/1131113002/diff/1/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/1131113002/diff/1/src/harmony-typedarray.js#newcode71 src/harmony-typedarray.js:71: this[to] = this[from]; On 2015/05/07 20:13:20, caitp wrote: > ...
5 years, 7 months ago (2015-05-07 20:28:07 UTC) #3
dehrenberg
On 2015/05/07 20:28:07, adamk wrote: > https://codereview.chromium.org/1131113002/diff/1/src/harmony-typedarray.js > File src/harmony-typedarray.js (right): > > https://codereview.chromium.org/1131113002/diff/1/src/harmony-typedarray.js#newcode71 > ...
5 years, 7 months ago (2015-05-07 20:42:50 UTC) #4
adamk
On 2015/05/07 20:42:50, dehrenberg wrote: > On 2015/05/07 20:28:07, adamk wrote: > > https://codereview.chromium.org/1131113002/diff/1/src/harmony-typedarray.js > ...
5 years, 7 months ago (2015-05-07 20:46:57 UTC) #5
dehrenberg
On 2015/05/07 20:46:57, adamk wrote: > On 2015/05/07 20:42:50, dehrenberg wrote: > > On 2015/05/07 ...
5 years, 7 months ago (2015-05-12 17:23:08 UTC) #6
adamk
Thanks for the refactor! Please expand the CL description a little bit (e.g., "Implement the ...
5 years, 7 months ago (2015-05-12 17:43:33 UTC) #7
adamk
https://codereview.chromium.org/1131113002/diff/20001/test/mjsunit/harmony/typedarray-copywithin.js File test/mjsunit/harmony/typedarray-copywithin.js (right): https://codereview.chromium.org/1131113002/diff/20001/test/mjsunit/harmony/typedarray-copywithin.js#newcode144 test/mjsunit/harmony/typedarray-copywithin.js:144: return Object.freeze(new constructor([1, 2, 3, 4, 5])).copyWithin(0, 3); On ...
5 years, 7 months ago (2015-05-12 17:47:36 UTC) #8
dehrenberg
On 2015/05/12 17:47:36, adamk wrote: > https://codereview.chromium.org/1131113002/diff/20001/test/mjsunit/harmony/typedarray-copywithin.js > File test/mjsunit/harmony/typedarray-copywithin.js (right): > > https://codereview.chromium.org/1131113002/diff/20001/test/mjsunit/harmony/typedarray-copywithin.js#newcode144 > ...
5 years, 7 months ago (2015-05-12 18:37:11 UTC) #9
adamk
lgtm
5 years, 7 months ago (2015-05-12 18:51:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131113002/60001
5 years, 7 months ago (2015-05-12 18:53:21 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-12 19:21:04 UTC) #13
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 19:21:21 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a863c4d3d82f72cc5f7e54eaf66a2a4336f1fdc2
Cr-Commit-Position: refs/heads/master@{#28381}

Powered by Google App Engine
This is Rietveld 408576698