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

Issue 1716833002: [runtime] Speed up C++ version of ArrayPush (Closed)

Created:
4 years, 10 months ago by Jakob Kummerow
Modified:
4 years, 10 months ago
CC:
v8-reviews_googlegroups.com, Toon Verwaest, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[runtime] Speed up C++ version of ArrayPush Mostly by avoiding unnecessary Handle/HandleScope creation, "length" property lookups, and length conversions. This yields about 60% speedup on the microbenchmark I tested with. Note that the C++ builtin is the middle performance tier of three, so not every Array.push use case will be affected by this patch. Committed: https://crrev.com/2ae50119cbf794b5c67b412b775bc40e132af1c8 Cr-Commit-Position: refs/heads/master@{#34268}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebased #

Patch Set 3 : add TODO for Toon's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -67 lines) Patch
M src/builtins.cc View 1 2 12 chunks +47 lines, -53 lines 0 comments Download
M src/debug/liveedit.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/elements.cc View 1 chunk +4 lines, -1 line 0 comments Download
M src/objects.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/objects.cc View 1 2 chunks +15 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
Jakob Kummerow
Ulan: PTAL, CQ it if you like it. Toon: FYI.
4 years, 10 months ago (2016-02-19 16:39:08 UTC) #2
Camillo Bruni
nice! indeed a slightly cleaner solution than my mess :P https://codereview.chromium.org/1716833002/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1716833002/diff/1/src/objects.cc#newcode16252 ...
4 years, 10 months ago (2016-02-22 19:25:55 UTC) #4
ulan
lgtm, nice clean-up
4 years, 10 months ago (2016-02-24 09:09:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1716833002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1716833002/1
4 years, 10 months ago (2016-02-24 09:09:19 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/13836) v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, ...
4 years, 10 months ago (2016-02-24 09:10:29 UTC) #9
Toon Verwaest
DBC, fine to handle in another CL. https://codereview.chromium.org/1716833002/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1716833002/diff/1/src/builtins.cc#newcode270 src/builtins.cc:270: // Use ...
4 years, 10 months ago (2016-02-24 10:31:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1716833002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1716833002/40001
4 years, 10 months ago (2016-02-25 05:18:45 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-25 05:40:04 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-25 05:40:42 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2ae50119cbf794b5c67b412b775bc40e132af1c8
Cr-Commit-Position: refs/heads/master@{#34268}

Powered by Google App Engine
This is Rietveld 408576698