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

Issue 1132163011: Add TypedArray.from 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

Add TypedArray.from method This function creates a new way to make TypedArrays based on existing iterable or Array-like objects, analogous to Array.from. The patch implements the function and adds tests. R=arv@chromium.org BUG=v8:3578 LOG=Y Committed: https://crrev.com/cc3f59db556efe4e31813326510730cccafe801b Cr-Commit-Position: refs/heads/master@{#28456}

Patch Set 1 #

Total comments: 34

Patch Set 2 : fixes suggested by arv #

Total comments: 8

Patch Set 3 : improving style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -1 line) Patch
M src/harmony-array.js View 2 chunks +2 lines, -0 lines 0 comments Download
M src/harmony-typedarray.js View 1 2 3 chunks +28 lines, -1 line 0 comments Download
A test/mjsunit/harmony/typedarray-from.js View 1 2 1 chunk +123 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
dehrenberg
5 years, 7 months ago (2015-05-14 23:43:57 UTC) #1
arv (Not doing code reviews)
https://codereview.chromium.org/1132163011/diff/1/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/1132163011/diff/1/src/harmony-typedarray.js#newcode104 src/harmony-typedarray.js:104: // TODO(dehrenberg): This is an approximation of the spec, ...
5 years, 7 months ago (2015-05-15 00:20:23 UTC) #2
dehrenberg
These should all be fixed in v2. https://codereview.chromium.org/1132163011/diff/1/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/1132163011/diff/1/src/harmony-typedarray.js#newcode104 src/harmony-typedarray.js:104: // TODO(dehrenberg): ...
5 years, 7 months ago (2015-05-15 23:39:15 UTC) #3
arv (Not doing code reviews)
https://codereview.chromium.org/1132163011/diff/20001/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/1132163011/diff/20001/src/harmony-typedarray.js#newcode121 src/harmony-typedarray.js:121: var array = %_CallFunction(GlobalArray, source, mapfn, thisArg, $arrayFrom); Add ...
5 years, 7 months ago (2015-05-16 18:23:45 UTC) #4
dehrenberg
https://codereview.chromium.org/1132163011/diff/20001/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/1132163011/diff/20001/src/harmony-typedarray.js#newcode121 src/harmony-typedarray.js:121: var array = %_CallFunction(GlobalArray, source, mapfn, thisArg, $arrayFrom); On ...
5 years, 7 months ago (2015-05-18 17:56:51 UTC) #5
arv (Not doing code reviews)
LGTM
5 years, 7 months ago (2015-05-18 18:11:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1132163011/40001
5 years, 7 months ago (2015-05-18 18:53:03 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-18 20:14:03 UTC) #9
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 22:12:19 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cc3f59db556efe4e31813326510730cccafe801b
Cr-Commit-Position: refs/heads/master@{#28456}

Powered by Google App Engine
This is Rietveld 408576698