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

Issue 2763473002: [typedarrays] Move %TypedArray%.prototype.slice to C++ (Closed)

Created:
3 years, 9 months ago by Choongwoo Han
Modified:
3 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[typedarrays] Move %TypedArray%.prototype.slice to C++ - Implement %TypedArray%.prototype.slice to C++ builtins - Remove TypedArraySlice in src/js/typedarray.js - Implement TypedArraySpeciesCreate in builtins-typedarray.cc - Implement TypedArrayCreate in builtins-typedarray.cc BUG=v8:5929 Review-Url: https://codereview.chromium.org/2763473002 Cr-Commit-Position: refs/heads/master@{#44322} Committed: https://chromium.googlesource.com/v8/v8/+/c5c0765ad918d3606d7711d9dc5e727981ec8dcf

Patch Set 1 #

Patch Set 2 : Add tests #

Total comments: 6

Patch Set 3 : Add tests, and move to elements accessor #

Patch Set 4 : generic typedarraycreate #

Patch Set 5 : type match #

Patch Set 6 : debug check #

Total comments: 7

Patch Set 7 : NewNumberFromInt64 #

Patch Set 8 : rebase #

Total comments: 6

Patch Set 9 : nits #

Total comments: 5

Patch Set 10 : minor #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -55 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M src/builtins/builtins-definitions.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M src/builtins/builtins-typedarray.cc View 1 2 3 4 5 6 7 8 2 chunks +127 lines, -0 lines 0 comments Download
M src/elements.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M src/elements.cc View 1 2 3 4 5 6 7 8 9 4 chunks +63 lines, -9 lines 0 comments Download
M src/js/typedarray.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -44 lines 0 comments Download
M test/mjsunit/es6/typedarray-slice.js View 1 2 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (27 generated)
Choongwoo Han
PTAL? I implemented all into builtins. I tried to put it into ElementsAccessor, but it ...
3 years, 9 months ago (2017-03-19 15:13:41 UTC) #3
Camillo Bruni
I'd prefer having this in elements.cc. Feel free to change the return type to JSObject
3 years, 9 months ago (2017-03-20 13:21:42 UTC) #4
Camillo Bruni
https://codereview.chromium.org/2763473002/diff/20001/src/builtins/builtins-typedarray.cc File src/builtins/builtins-typedarray.cc (right): https://codereview.chromium.org/2763473002/diff/20001/src/builtins/builtins-typedarray.cc#newcode331 src/builtins/builtins-typedarray.cc:331: FixedTypedArrayBase::cast(result_array->elements())); nit: No need for handles here. Add "DisallowHeapAllocation ...
3 years, 9 months ago (2017-03-20 13:37:25 UTC) #5
Choongwoo Han
On 2017/03/20 13:21:42, Camillo Bruni wrote: > I'd prefer having this in elements.cc. > Feel ...
3 years, 9 months ago (2017-03-20 13:47:30 UTC) #6
Camillo Bruni
On 2017/03/20 at 13:47:30, cwhan.tunz wrote: > On 2017/03/20 13:21:42, Camillo Bruni wrote: > > ...
3 years, 9 months ago (2017-03-20 13:51:46 UTC) #7
Choongwoo Han
I moved all to elements accessor. I made an additional Slice method to get a ...
3 years, 9 months ago (2017-03-21 12:39:03 UTC) #8
Camillo Bruni
Sorry for the late response... I had a slightly different approach in mind, see my ...
3 years, 9 months ago (2017-03-22 22:08:25 UTC) #9
Choongwoo Han
https://codereview.chromium.org/2763473002/diff/100001/src/builtins/builtins-typedarray.cc File src/builtins/builtins-typedarray.cc (right): https://codereview.chromium.org/2763473002/diff/100001/src/builtins/builtins-typedarray.cc#newcode315 src/builtins/builtins-typedarray.cc:315: Handle<JSTypedArray> result_array; On 2017/03/22 22:08:25, Camillo Bruni wrote: > ...
3 years, 9 months ago (2017-03-22 22:29:55 UTC) #10
Camillo Bruni
https://codereview.chromium.org/2763473002/diff/100001/src/builtins/builtins-typedarray.cc File src/builtins/builtins-typedarray.cc (right): https://codereview.chromium.org/2763473002/diff/100001/src/builtins/builtins-typedarray.cc#newcode45 src/builtins/builtins-typedarray.cc:45: MaybeHandle<JSTypedArray> TypedArrayCreate(Isolate* isolate, On 2017/03/22 at 22:08:25, Camillo Bruni ...
3 years, 9 months ago (2017-03-23 11:06:16 UTC) #11
Choongwoo Han
https://codereview.chromium.org/2763473002/diff/100001/src/builtins/builtins-typedarray.cc File src/builtins/builtins-typedarray.cc (right): https://codereview.chromium.org/2763473002/diff/100001/src/builtins/builtins-typedarray.cc#newcode116 src/builtins/builtins-typedarray.cc:116: argv[0] = isolate->factory()->NewNumber(length); On 2017/03/22 22:08:25, Camillo Bruni wrote: ...
3 years, 9 months ago (2017-03-23 17:38:48 UTC) #16
Camillo Bruni
Peter, can you have a look at the instantiation.
3 years, 9 months ago (2017-03-27 08:23:46 UTC) #22
Camillo Bruni
last nits. https://codereview.chromium.org/2763473002/diff/140001/src/builtins/builtins-typedarray.cc File src/builtins/builtins-typedarray.cc (right): https://codereview.chromium.org/2763473002/diff/140001/src/builtins/builtins-typedarray.cc#newcode62 src/builtins/builtins-typedarray.cc:62: DCHECK(argc > 1 || argv[0]->IsSmi()); DCHECK_IMPLIES(argc == ...
3 years, 9 months ago (2017-03-27 08:59:01 UTC) #23
Choongwoo Han
https://codereview.chromium.org/2763473002/diff/140001/src/builtins/builtins-typedarray.cc File src/builtins/builtins-typedarray.cc (right): https://codereview.chromium.org/2763473002/diff/140001/src/builtins/builtins-typedarray.cc#newcode62 src/builtins/builtins-typedarray.cc:62: DCHECK(argc > 1 || argv[0]->IsSmi()); On 2017/03/27 08:59:01, Camillo ...
3 years, 9 months ago (2017-03-27 12:36:34 UTC) #24
Camillo Bruni
LGTM, please wait for petermarshall and bmeurer.
3 years, 9 months ago (2017-03-27 12:45:46 UTC) #25
petermarshall
LGTM with comments, thanks https://codereview.chromium.org/2763473002/diff/160001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2763473002/diff/160001/src/elements.cc#newcode3084 src/elements.cc:3084: int64_t count = std::max<int64_t>(end - ...
3 years, 8 months ago (2017-03-29 14:18:22 UTC) #30
Choongwoo Han
https://codereview.chromium.org/2763473002/diff/160001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2763473002/diff/160001/src/elements.cc#newcode3084 src/elements.cc:3084: int64_t count = std::max<int64_t>(end - start, 0); On 2017/03/29 ...
3 years, 8 months ago (2017-03-29 14:42:02 UTC) #31
petermarshall
Thanks! https://codereview.chromium.org/2763473002/diff/160001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2763473002/diff/160001/src/elements.cc#newcode3101 src/elements.cc:3101: Handle<BackingStore> from(BackingStore::cast(array->elements()), isolate); On 2017/03/29 at 14:42:02, Choongwoo ...
3 years, 8 months ago (2017-03-29 14:49:38 UTC) #32
Benedikt Meurer
LGTM (rubber-stamped) Note: You don't need to wait for my LGTM on these changes when ...
3 years, 8 months ago (2017-03-31 06:52:27 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763473002/200001
3 years, 8 months ago (2017-04-01 16:44:52 UTC) #44
commit-bot: I haz the power
3 years, 8 months ago (2017-04-01 16:46:21 UTC) #47
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/v8/v8/+/c5c0765ad918d3606d7711d9dc5e727981e...

Powered by Google App Engine
This is Rietveld 408576698