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

Issue 11361275: Remove atomic increment/decrement on each DOM call (Closed)

Created:
8 years, 1 month ago by abarth-chromium
Modified:
8 years ago
Reviewers:
Sven Panne
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@bleeding_edge
Visibility:
Public.

Description

Remove atomic increment/decrement on each DOM call This patch removes the VMState stack object for each callbacks into the embedder. When we call an interceptor callback, we don't need to ratelimit the profiler (because the vast majority of interceptor callbacks are quick), and therefore we can avoid the atomic increment and decrement operations. This change removes a function that accounts for 7% of Dromeo's dom-traverse profile on Mac OS X.

Patch Set 1 #

Patch Set 2 : Simpiler approach #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -92 lines) Patch
M src/objects.cc View 1 14 chunks +24 lines, -92 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
abarth-chromium
I've updated this CL with a simpler approach. As far as I can tell, we ...
8 years ago (2012-11-26 20:38:17 UTC) #1
abarth-chromium
I've run this through make ia32.release.check and all the WebKit LayoutTests, and everything passed.
8 years ago (2012-11-26 20:46:37 UTC) #2
abarth-chromium
I got a fancier profiler for Linux, and we spend 7.7% of our time in ...
8 years ago (2012-11-29 01:57:53 UTC) #3
abarth-chromium
Here's the combined effect on the profile from this CL and <https://codereview.chromium.org/11434021>: == Before == ...
8 years ago (2012-11-29 02:26:21 UTC) #4
Sven Panne
How exactly did you profile this? I'd be interested in trying out some things, but ...
8 years ago (2012-11-29 08:26:33 UTC) #5
abarth-chromium
On 2012/11/29 08:26:33, Sven Panne wrote: > How exactly did you profile this? I'd be ...
8 years ago (2012-11-29 15:56:30 UTC) #6
Yang
On 2012/11/29 15:56:30, abarth wrote: > On 2012/11/29 08:26:33, Sven Panne wrote: > > How ...
8 years ago (2012-11-29 16:43:19 UTC) #7
abarth-chromium
> I recently landed a CL that hooks VMState to catch places where we call ...
8 years ago (2012-11-29 18:32:07 UTC) #8
Sven Panne
8 years ago (2012-12-11 08:14:48 UTC) #9
Closing this one because of a more general approach currently in the works...
(which probably removes *all* locking/atomic ops in this area)

Powered by Google App Engine
This is Rietveld 408576698