TypedArray.prototype.copyWithin method
authordehrenberg <dehrenberg@chromium.org>
Tue, 12 May 2015 19:20:58 +0000 (12:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 12 May 2015 19:20:56 +0000 (19:20 +0000)
commita863c4d3d82f72cc5f7e54eaf66a2a4336f1fdc2
treeea00f5114182b595ae0ed06006de0e6ea6dcc933
parent0b620ad5e59c050820fd2553f094e3cc1dd66849
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

Review URL: https://codereview.chromium.org/1131113002

Cr-Commit-Position: refs/heads/master@{#28381}
src/harmony-array.js
src/harmony-typedarray.js
test/mjsunit/harmony/typedarray-copywithin.js [new file with mode: 0644]