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

Issue 1126313003: Make one copy for all TypedArray methods (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

Make one copy for all TypedArray methods This is the first step of converting TypedArrays to the proper proto chain. There is one copy for each of the Harmony TypedArray methods, rather than a version for each TypedArray type. This form prevents accidentally baking in knowledge about a particular array type into the method definition. R=adamk@chromium.org, arv@chromium.org, caitpotter88@gmail.com, dslomov@chromium.org, jochen@chromium.org BUG=v8:4085 LOG=Y Committed: https://crrev.com/ca9d499f75b3557840f82f1ad172afdb514ce2d1 Cr-Commit-Position: refs/heads/master@{#28325}

Patch Set 1 #

Patch Set 2 : Simplify TypedArray macro #

Patch Set 3 : Adding test and fixing failures (TypedArray.from and TypedArray.prototype.subarray) #

Total comments: 3

Patch Set 4 : Leave out subarray; improve tests #

Total comments: 1

Patch Set 5 : Cleaner tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -24 lines) Patch
M src/harmony-typedarray.js View 1 5 chunks +17 lines, -24 lines 0 comments Download
A test/mjsunit/harmony/typedarray-proto.js View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
adamk
Please add a test for this enforcing that there is but a single one of ...
5 years, 7 months ago (2015-05-07 20:09:05 UTC) #1
dehrenberg
Done
5 years, 7 months ago (2015-05-08 01:08:08 UTC) #2
adamk
https://codereview.chromium.org/1126313003/diff/40001/src/typedarray.js File src/typedarray.js (right): https://codereview.chromium.org/1126313003/diff/40001/src/typedarray.js#newcode158 src/typedarray.js:158: function TypedArraySubArray(begin, end) { We probably want to change ...
5 years, 7 months ago (2015-05-08 01:13:34 UTC) #3
dehrenberg
On 2015/05/08 01:13:34, adamk wrote: > https://codereview.chromium.org/1126313003/diff/40001/src/typedarray.js > File src/typedarray.js (right): > > https://codereview.chromium.org/1126313003/diff/40001/src/typedarray.js#newcode158 > ...
5 years, 7 months ago (2015-05-08 19:46:06 UTC) #4
arv (Not doing code reviews)
https://codereview.chromium.org/1126313003/diff/60001/test/mjsunit/harmony/typedarray-proto.js File test/mjsunit/harmony/typedarray-proto.js (right): https://codereview.chromium.org/1126313003/diff/60001/test/mjsunit/harmony/typedarray-proto.js#newcode40 test/mjsunit/harmony/typedarray-proto.js:40: typedArrayConstructors.map(function(constructor) { maybe a nested loop would be cleaner? ...
5 years, 7 months ago (2015-05-08 20:02:03 UTC) #5
adamk
lgtm % arv's comments On 2015/05/08 19:46:06, dehrenberg wrote: > On 2015/05/08 01:13:34, adamk wrote: ...
5 years, 7 months ago (2015-05-08 20:07:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126313003/80001
5 years, 7 months ago (2015-05-08 20:57:30 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-09 01:20:08 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-05-09 01:20:22 UTC) #11
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ca9d499f75b3557840f82f1ad172afdb514ce2d1
Cr-Commit-Position: refs/heads/master@{#28325}

Powered by Google App Engine
This is Rietveld 408576698