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

Issue 1186733002: Add %TypedArray% to proto chain (Closed)

Created:
5 years, 6 months ago by Dan Ehrenberg
Modified:
5 years, 6 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% to proto chain According to the ES6 spec, the main methods and getters shouldn't be properties of the individual TypedArray objects and prototypes but instead on %TypedArray% and %TypedArray%.prototype. This difference is observable through introspection. This patch moves some methods and getters to the proper place, with the exception of %TypedArray%.prototype.subarray and harmony methods. These will be moved in follow-on patches. BUG=v8:4085 LOG=Y R=adamk Committed: https://crrev.com/a10590158260737b256fac3254b4939f48f90095 Cr-Commit-Position: refs/heads/master@{#29057}

Patch Set 1 #

Total comments: 20

Patch Set 2 : extend to harmony methods #

Patch Set 3 : fix adam's issues #

Total comments: 16

Patch Set 4 : Update for %_IsTypedArray #

Patch Set 5 : fix some of arv's issues #

Total comments: 4

Patch Set 6 : changes from arv's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -132 lines) Patch
M src/harmony-typedarray.js View 1 2 3 3 chunks +38 lines, -45 lines 0 comments Download
M src/runtime/runtime-function.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-object.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/typedarray.js View 1 2 3 4 3 chunks +57 lines, -43 lines 0 comments Download
M test/mjsunit/es6/built-in-accessor-names.js View 1 2 3 4 2 chunks +17 lines, -9 lines 0 comments Download
M test/mjsunit/get-prototype-of.js View 3 chunks +17 lines, -9 lines 0 comments Download
M test/mjsunit/harmony/sharedarraybuffer.js View 1 2 3 4 3 chunks +11 lines, -8 lines 0 comments Download
M test/mjsunit/harmony/typedarrays.js View 1 2 3 4 3 chunks +11 lines, -8 lines 0 comments Download
M test/mjsunit/harmony/typedarrays-of.js View 1 2 3 4 2 chunks +10 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-typedarray-length.js View 1 2 3 4 5 2 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
Dan Ehrenberg
5 years, 6 months ago (2015-06-12 23:55:33 UTC) #1
adamk
https://codereview.chromium.org/1186733002/diff/1/src/runtime/runtime-function.cc File src/runtime/runtime-function.cc (right): https://codereview.chromium.org/1186733002/diff/1/src/runtime/runtime-function.cc#newcode174 src/runtime/runtime-function.cc:174: // Set constructor.prototype I'd expand this to something like: ...
5 years, 6 months ago (2015-06-13 00:49:39 UTC) #2
Dan Ehrenberg
The new version isn't ready to submit until %IsTypedArray becomes faster. https://codereview.chromium.org/1186733002/diff/1/src/runtime/runtime-function.cc File src/runtime/runtime-function.cc (right): ...
5 years, 6 months ago (2015-06-13 05:54:09 UTC) #3
arv (Not doing code reviews)
Can you ensure that the following works as expected? - [[Call]]ing %TypedArray% should always fail. ...
5 years, 6 months ago (2015-06-15 16:23:12 UTC) #5
adamk
Per the spec, %TypedArray%.name is "TypedArray": https://people.mozilla.org/~jorendorff/es6-draft.html#sec-properties-of-the-%typedarray%-intrinsic-object
5 years, 6 months ago (2015-06-15 16:50:35 UTC) #6
Dan Ehrenberg
With an upcoming patch that I am working on, it'll be possible for me to ...
5 years, 6 months ago (2015-06-15 23:28:35 UTC) #7
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/1186733002/diff/40001/test/mjsunit/es6/built-in-accessor-names.js File test/mjsunit/es6/built-in-accessor-names.js (right): https://codereview.chromium.org/1186733002/diff/40001/test/mjsunit/es6/built-in-accessor-names.js#newcode47 test/mjsunit/es6/built-in-accessor-names.js:47: assertGetterName('get buffer', f.prototype, 'buffer', 1); On 2015/06/15 23:28:34, ...
5 years, 6 months ago (2015-06-16 16:24:49 UTC) #8
Dan Ehrenberg
https://codereview.chromium.org/1186733002/diff/40001/test/mjsunit/es6/built-in-accessor-names.js File test/mjsunit/es6/built-in-accessor-names.js (right): https://codereview.chromium.org/1186733002/diff/40001/test/mjsunit/es6/built-in-accessor-names.js#newcode47 test/mjsunit/es6/built-in-accessor-names.js:47: assertGetterName('get buffer', f.prototype, 'buffer', 1); On 2015/06/16 16:24:49, arv ...
5 years, 6 months ago (2015-06-16 22:38:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1186733002/100001
5 years, 6 months ago (2015-06-16 22:38:47 UTC) #12
arv (Not doing code reviews)
https://codereview.chromium.org/1186733002/diff/40001/test/mjsunit/es6/built-in-accessor-names.js File test/mjsunit/es6/built-in-accessor-names.js (right): https://codereview.chromium.org/1186733002/diff/40001/test/mjsunit/es6/built-in-accessor-names.js#newcode47 test/mjsunit/es6/built-in-accessor-names.js:47: assertGetterName('get buffer', f.prototype, 'buffer', 1); On 2015/06/16 22:38:22, littledan ...
5 years, 6 months ago (2015-06-16 22:48:42 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 6 months ago (2015-06-16 23:39:06 UTC) #14
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/a10590158260737b256fac3254b4939f48f90095 Cr-Commit-Position: refs/heads/master@{#29057}
5 years, 6 months ago (2015-06-16 23:39:23 UTC) #15
Michael Achenbach
5 years, 6 months ago (2015-06-17 09:05:03 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1192433003/ by machenbach@chromium.org.

The reason for reverting is: [Sheriff] Changes layout tests:
http://build.chromium.org/p/client.v8.fyi/builders/V8-Blink%20Linux%2032/buil...

See e.g.:
https://storage.googleapis.com/chromium-layout-test-archives/V8-Blink_Linux_3...

Please upload a blink side needsmanualrebaseline change first for these tests if
the change is intended. Please also add a blink trybot on a reland of this CL..

Powered by Google App Engine
This is Rietveld 408576698