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

Issue 2521043005: [elements] Add CreateFromArrayLike fast-path for JS_ARRAY_TYPE (Closed)

Created:
4 years ago by Camillo Bruni
Modified:
4 years ago
Reviewers:
Jakob Kummerow
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[elements] Add CreateFromArrayLike fast-path for JS_ARRAY_TYPE Make apply calls with double array arguments such as Math.min.apply(Math, [1.1, 2.2]) 1.6x faster. Drive-by-fix: pass in the isolate to ElementsAccessor::GetImpl. BUG=v8:4826 Committed: https://crrev.com/4ec41c355cde0e73f5dcbcf97eb2e6bc0615255a Cr-Commit-Position: refs/heads/master@{#41268}

Patch Set 1 #

Patch Set 2 : avoid unnecessary writes #

Total comments: 3

Patch Set 3 : addressing nits #

Patch Set 4 : merge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -42 lines) Patch
M src/elements.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/elements.cc View 1 2 3 22 chunks +75 lines, -42 lines 0 comments Download
M src/objects.cc View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (19 generated)
Camillo Bruni
PTAL
4 years ago (2016-11-24 09:05:33 UTC) #7
Jakob Kummerow
lgtm https://codereview.chromium.org/2521043005/diff/20001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2521043005/diff/20001/src/elements.cc#newcode2281 src/elements.cc:2281: for (int i = 0; i < elements->length(); ...
4 years ago (2016-11-24 10:55:16 UTC) #9
Camillo Bruni
https://codereview.chromium.org/2521043005/diff/20001/src/elements.h File src/elements.h (right): https://codereview.chromium.org/2521043005/diff/20001/src/elements.h#newcode178 src/elements.h:178: virtual Handle<FixedArray> CreateListFromArrayLike(Isolate* isolate, On 2016/11/24 at 10:55:16, Jakob ...
4 years ago (2016-11-24 14:02:00 UTC) #14
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/2521043005/40001
4 years ago (2016-11-24 14:02:21 UTC) #17
commit-bot: I haz the power
Failed to apply patch for src/elements.cc: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-11-24 14:03:56 UTC) #19
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/2521043005/60001
4 years ago (2016-11-24 14:22:31 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-24 14:48:03 UTC) #25
commit-bot: I haz the power
4 years ago (2016-11-24 14:48:35 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4ec41c355cde0e73f5dcbcf97eb2e6bc0615255a
Cr-Commit-Position: refs/heads/master@{#41268}

Powered by Google App Engine
This is Rietveld 408576698