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

Issue 1706213002: Tune Array.forEach, fix Array functions (Closed)

Created:
4 years, 10 months ago by Jakob Kummerow
Modified:
4 years, 9 months ago
Reviewers:
Toon Verwaest
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

Tune Array.forEach, fix Array functions When there is no receiver object, plain function calls are a few percent faster than %_Call(). This patch also fixes the HAS_INDEX macro used in a bunch of Array.prototype functions to properly check for elements inherited from prototypes. Committed: https://crrev.com/01d228f3cd0125250bb94f1330f9c697568a4768 Cr-Commit-Position: refs/heads/master@{#34269}

Patch Set 1 #

Patch Set 2 : correctify inherited elements #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -5 lines) Patch
M src/js/array.js View 1 chunk +13 lines, -4 lines 2 comments Download
M src/js/macros.py View 1 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/array-foreach.js View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Jakob Kummerow
This appears to give about 1-7% on a microbenchmark (hard to be sure due to ...
4 years, 10 months ago (2016-02-18 15:04:39 UTC) #2
Jakob Kummerow
New patch set fixes elements inherited from prototypes, PTAL.
4 years, 10 months ago (2016-02-18 16:13:02 UTC) #3
adamk
https://codereview.chromium.org/1706213002/diff/20001/src/js/array.js File src/js/array.js (right): https://codereview.chromium.org/1706213002/diff/20001/src/js/array.js#newcode1260 src/js/array.js:1260: if (IS_UNDEFINED(receiver)) { FWIW we used to do something ...
4 years, 10 months ago (2016-02-18 17:43:32 UTC) #5
Toon Verwaest
lgtm https://codereview.chromium.org/1706213002/diff/20001/src/js/array.js File src/js/array.js (right): https://codereview.chromium.org/1706213002/diff/20001/src/js/array.js#newcode1260 src/js/array.js:1260: if (IS_UNDEFINED(receiver)) { On 2016/02/18 17:43:32, adamk wrote: ...
4 years, 10 months ago (2016-02-24 09:09:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1706213002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1706213002/20001
4 years, 9 months ago (2016-02-25 05:20:18 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-02-25 05:42:42 UTC) #10
commit-bot: I haz the power
4 years, 9 months ago (2016-02-25 05:43:55 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/01d228f3cd0125250bb94f1330f9c697568a4768
Cr-Commit-Position: refs/heads/master@{#34269}

Powered by Google App Engine
This is Rietveld 408576698