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

Issue 9401019: Support for return-address rewriting profilers. (Closed)

Created:
8 years, 10 months ago by Sigurður Ásgeirsson
Modified:
8 years, 10 months ago
CC:
v8-dev
Visibility:
Public.

Description

Adds a new API where the host can supply a callback function. The callback function can resolve the location of a return address on stack to the location where a return-address rewriting profiler stashed the original return address. Committed: https://code.google.com/p/v8/source/detail?r=10845

Patch Set 1 #

Patch Set 2 : Fix abortive comment. #

Total comments: 2

Patch Set 3 : Supply return address resolution function through an API. #

Total comments: 20

Patch Set 4 : Address Vyacheslav's review comments #

Patch Set 5 : Removed a stray tab. Now passes presubmit checks. #

Patch Set 6 : Add inline specifier for ResolveReturnAddressLocation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -6 lines) Patch
M include/v8.h View 1 2 2 chunks +21 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/frames.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/frames.cc View 1 2 3 4 5 6 chunks +31 lines, -6 lines 0 comments Download
M src/v8.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/v8.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Roger McFarlane (Chromium)
some musings https://chromiumcodereview.appspot.com/9401019/diff/1004/src/platform-win32.cc File src/platform-win32.cc (right): https://chromiumcodereview.appspot.com/9401019/diff/1004/src/platform-win32.cc#newcode131 src/platform-win32.cc:131: // TODO(siggi): Check for the presence of ...
8 years, 10 months ago (2012-02-15 21:19:02 UTC) #1
Sigurður Ásgeirsson
https://chromiumcodereview.appspot.com/9401019/diff/1004/src/platform-win32.cc File src/platform-win32.cc (right): https://chromiumcodereview.appspot.com/9401019/diff/1004/src/platform-win32.cc#newcode131 src/platform-win32.cc:131: // TODO(siggi): Check for the presence of the Syzygy ...
8 years, 10 months ago (2012-02-15 21:45:55 UTC) #2
Sigurður Ásgeirsson
Vyacheslav, this exposes a new API whereby the host can set a callback function to ...
8 years, 10 months ago (2012-02-23 19:22:47 UTC) #3
Vyacheslav Egorov (Chromium)
lgtm once you address comments. https://chromiumcodereview.appspot.com/9401019/diff/5001/src/api.cc File src/api.cc (right): https://chromiumcodereview.appspot.com/9401019/diff/5001/src/api.cc#newcode4027 src/api.cc:4027: add empty line https://chromiumcodereview.appspot.com/9401019/diff/5001/src/api.cc#newcode4032 ...
8 years, 10 months ago (2012-02-24 10:34:02 UTC) #4
Vyacheslav Egorov (Chromium)
https://chromiumcodereview.appspot.com/9401019/diff/5001/src/frames.h File src/frames.h (right): https://chromiumcodereview.appspot.com/9401019/diff/5001/src/frames.h#newcode245 src/frames.h:245: // to resolve the location of a return address ...
8 years, 10 months ago (2012-02-24 10:35:59 UTC) #5
Sigurður Ásgeirsson
Thanks. How do I go about submitting this CL? https://chromiumcodereview.appspot.com/9401019/diff/5001/src/api.cc File src/api.cc (right): https://chromiumcodereview.appspot.com/9401019/diff/5001/src/api.cc#newcode4027 src/api.cc:4027: ...
8 years, 10 months ago (2012-02-24 14:46:04 UTC) #6
Vyacheslav Egorov (Chromium)
I will commit it for you. CQ does not work for V8. https://chromiumcodereview.appspot.com/9401019/diff/5001/src/frames.cc File src/frames.cc ...
8 years, 10 months ago (2012-02-24 14:48:21 UTC) #7
Sigurður Ásgeirsson
8 years, 10 months ago (2012-02-24 14:59:40 UTC) #8
Thanks.

https://chromiumcodereview.appspot.com/9401019/diff/5001/src/frames.cc
File src/frames.cc (right):

https://chromiumcodereview.appspot.com/9401019/diff/5001/src/frames.cc#newcode49
src/frames.cc:49: Address* ResolveReturnAddressLocation(Address* pc_address) {
On 2012/02/24 14:48:21, Vyacheslav Egorov wrote:
> On 2012/02/24 14:46:04, Ruðrugis wrote:
> > On 2012/02/24 10:34:02, Vyacheslav Egorov wrote:
> > > declare it static
> > 
> > Done.
> > Does this warrant "static inline" or are the compilers we use generally
smart
> > enough to work that out for themselves?
> 
> Yes, I think there is no harm declaring it inline (though these days it serves
> more as a way to communicate our "hope of inlining" to other code readers than
> to compiler).

Done.

Powered by Google App Engine
This is Rietveld 408576698