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

Issue 1767893002: Optimize new TypedArray(typedArray) constructor (Closed)

Created:
4 years, 9 months ago by Dan Ehrenberg
Modified:
4 years, 9 months ago
Reviewers:
adamk
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Optimize new TypedArray(typedArray) constructor A previous spec compliance fix for TypedArrays caused a ~4x performance regression. This patch removes the regression by calling out to a path within the runtime which implements array copying more efficiently. BUG=chromium:592007 R=adamk LOG=Y Committed: https://crrev.com/ab6e48de4815a03cb6523fbce209fd6fb6df9696 Cr-Commit-Position: refs/heads/master@{#34601}

Patch Set 1 #

Patch Set 2 : Fix broken build #

Patch Set 3 : Fix mis-named variable #

Patch Set 4 : Fix test262 failures and remove regression #

Total comments: 7

Patch Set 5 : Fix asan issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -15 lines) Patch
M src/js/typedarray.js View 1 2 3 4 4 chunks +6 lines, -15 lines 0 comments Download

Messages

Total messages: 32 (16 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767893002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767893002/1
4 years, 9 months ago (2016-03-05 00:59:31 UTC) #2
commit-bot: I haz the power
Dry run: 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/11123) v8_linux64_rel_ng on ...
4 years, 9 months ago (2016-03-05 01:02:16 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767893002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767893002/20001
4 years, 9 months ago (2016-03-05 02:20:33 UTC) #6
commit-bot: I haz the power
Dry run: 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/11125) v8_linux64_rel_ng on ...
4 years, 9 months ago (2016-03-05 02:22:24 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767893002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767893002/40001
4 years, 9 months ago (2016-03-07 19:16:41 UTC) #10
commit-bot: I haz the power
Dry run: 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/16453)
4 years, 9 months ago (2016-03-07 19:39:08 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767893002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767893002/60001
4 years, 9 months ago (2016-03-08 19:07:47 UTC) #15
Dan Ehrenberg
Actually the regression was due to redundant zeroing in my previous patch, and it's gone ...
4 years, 9 months ago (2016-03-08 19:08:45 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/14875)
4 years, 9 months ago (2016-03-08 19:22:01 UTC) #18
adamk
https://codereview.chromium.org/1767893002/diff/60001/src/js/typedarray.js File src/js/typedarray.js (left): https://codereview.chromium.org/1767893002/diff/60001/src/js/typedarray.js#oldcode212 src/js/typedarray.js:212: if (byteLength <= %_TypedArrayMaxSizeInHeap()) { What's up with this ...
4 years, 9 months ago (2016-03-08 19:32:10 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767893002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767893002/80001
4 years, 9 months ago (2016-03-08 19:46:22 UTC) #21
Dan Ehrenberg
https://codereview.chromium.org/1767893002/diff/60001/src/js/typedarray.js File src/js/typedarray.js (left): https://codereview.chromium.org/1767893002/diff/60001/src/js/typedarray.js#oldcode212 src/js/typedarray.js:212: if (byteLength <= %_TypedArrayMaxSizeInHeap()) { On 2016/03/08 at 19:32:10, ...
4 years, 9 months ago (2016-03-08 19:55:55 UTC) #22
adamk
lgtm https://codereview.chromium.org/1767893002/diff/60001/src/js/typedarray.js File src/js/typedarray.js (right): https://codereview.chromium.org/1767893002/diff/60001/src/js/typedarray.js#newcode214 src/js/typedarray.js:214: // It is crucial that we let any ...
4 years, 9 months ago (2016-03-08 20:05:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767893002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767893002/80001
4 years, 9 months ago (2016-03-08 20:06:59 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-08 20:08:28 UTC) #30
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 20:08:45 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ab6e48de4815a03cb6523fbce209fd6fb6df9696
Cr-Commit-Position: refs/heads/master@{#34601}

Powered by Google App Engine
This is Rietveld 408576698