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

Issue 1148513002: Implement %TypedArray%.prototype.sort (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

Implement %TypedArray%.prototype.sort The sort method of TypedArrays sorts in numerical order by default. This patch implements sorting based on Arrays and adds a test. The length of %TypedArray%.prototype.sort, like Array.prototype.sort, seems to be unspecified in ES6, so this patch lets it have the value 1, to match our interpretation for Array.prototype.sort (though 0 would also be a sensible length). R=arv@chromium.org BUG=v8:3578 LOG=Y Committed: https://chromium.googlesource.com/v8/v8/+/540bb0c80beb66578c42e71378de81b40455a83a

Patch Set 1 #

Total comments: 12

Patch Set 2 : cleanups #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -5 lines) Patch
M src/array.js View 1 2 3 5 chunks +11 lines, -4 lines 0 comments Download
M src/harmony-typedarray.js View 1 2 3 2 chunks +36 lines, -1 line 0 comments Download
A test/mjsunit/harmony/typedarray-sort.js View 1 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
dehrenberg
5 years, 7 months ago (2015-05-19 05:39:46 UTC) #1
arv (Not doing code reviews)
The length is specified to 1. https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-standard-built-in-objects
5 years, 7 months ago (2015-05-19 15:40:11 UTC) #2
arv (Not doing code reviews)
https://codereview.chromium.org/1148513002/diff/1/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/1148513002/diff/1/src/harmony-typedarray.js#newcode94 src/harmony-typedarray.js:94: function TypedArrayComparefn(x, y) { This is OK for now ...
5 years, 7 months ago (2015-05-19 15:49:31 UTC) #3
dehrenberg
https://codereview.chromium.org/1148513002/diff/1/src/harmony-typedarray.js File src/harmony-typedarray.js (right): https://codereview.chromium.org/1148513002/diff/1/src/harmony-typedarray.js#newcode94 src/harmony-typedarray.js:94: function TypedArrayComparefn(x, y) { On 2015/05/19 15:49:31, arv wrote: ...
5 years, 7 months ago (2015-05-19 16:39:09 UTC) #4
arv (Not doing code reviews)
LGTM
5 years, 7 months ago (2015-05-19 16:41:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148513002/20001
5 years, 7 months ago (2015-05-19 16:52:26 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/508)
5 years, 7 months ago (2015-05-19 16:53:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148513002/40001
5 years, 7 months ago (2015-05-20 00:20:49 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel/builds/5834) v8_mac_rel on tryserver.v8 (JOB_FAILED, ...
5 years, 7 months ago (2015-05-20 00:23:04 UTC) #14
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/540bb0c80beb66578c42e71378de81b40455a83a Cr-Commit-Position: refs/heads/master@{#28494}
5 years, 7 months ago (2015-05-20 00:56:43 UTC) #15
adamk
5 years, 7 months ago (2015-05-20 00:56:44 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
540bb0c80beb66578c42e71378de81b40455a83a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698