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

Issue 18269003: Correctly report stack trace when current function is FunctionApply builtin (Closed)

Created:
7 years, 5 months ago by yurys
Modified:
7 years, 5 months ago
Reviewers:
loislo, Jakob Kummerow
CC:
v8-dev, alph
Visibility:
Public.

Description

Correctly report stack trace when current function is FunctionApply builtin When pc is inside FunctionApply builtin function the top frame may be either 2) Internal stack frame created by FunctionApply itself. In this case we know its caller's pc and can correctly resolve calling function. 1) Frame of the calling JavaScript function that invoked .apply(). In this case we have no practical reliable way to find out the caller's pc so we mark the caller's frame as 'unresolved'. All this logic is implemented in ProfileGenerator. SafeStackFrameIterator is extended to provide type of the current top stack frame (iteration actually starts from the caller's frame as we know top function from pc). BUG=252097 R=jkummerow@chromium.org, loislo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15468

Patch Set 1 #

Total comments: 2

Patch Set 2 : Reverted acidental change #

Total comments: 2

Patch Set 3 : Addressed comment added check for GC stress testing #

Patch Set 4 : Fixed test #

Patch Set 5 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -9 lines) Patch
M src/frames.h View 2 chunks +3 lines, -0 lines 0 comments Download
M src/frames.cc View 1 chunk +20 lines, -2 lines 0 comments Download
M src/profile-generator.cc View 1 chunk +10 lines, -5 lines 0 comments Download
M src/sampler.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/sampler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 2 3 4 2 chunks +100 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
yurys
7 years, 5 months ago (2013-07-02 15:41:07 UTC) #1
loislo
lgtm https://codereview.chromium.org/18269003/diff/1/src/profile-generator.h File src/profile-generator.h (right): https://codereview.chromium.org/18269003/diff/1/src/profile-generator.h#newcode119 src/profile-generator.h:119: Logger::LogEventsAndTags tag() const { return tag_; } revert?
7 years, 5 months ago (2013-07-03 08:50:32 UTC) #2
yurys
https://codereview.chromium.org/18269003/diff/1/src/profile-generator.h File src/profile-generator.h (right): https://codereview.chromium.org/18269003/diff/1/src/profile-generator.h#newcode119 src/profile-generator.h:119: Logger::LogEventsAndTags tag() const { return tag_; } On 2013/07/03 ...
7 years, 5 months ago (2013-07-03 08:56:06 UTC) #3
Jakob Kummerow
lgtm https://codereview.chromium.org/18269003/diff/6001/test/cctest/test-cpu-profiler.cc File test/cctest/test-cpu-profiler.cc (right): https://codereview.chromium.org/18269003/diff/6001/test/cctest/test-cpu-profiler.cc#newcode1198 test/cctest/test-cpu-profiler.cc:1198: nit: if Rietveld isn't lying and this is ...
7 years, 5 months ago (2013-07-03 11:41:50 UTC) #4
yurys
https://codereview.chromium.org/18269003/diff/6001/test/cctest/test-cpu-profiler.cc File test/cctest/test-cpu-profiler.cc (right): https://codereview.chromium.org/18269003/diff/6001/test/cctest/test-cpu-profiler.cc#newcode1198 test/cctest/test-cpu-profiler.cc:1198: On 2013/07/03 11:41:50, Jakob wrote: > nit: if Rietveld ...
7 years, 5 months ago (2013-07-03 13:52:08 UTC) #5
yurys
7 years, 5 months ago (2013-07-03 14:04:46 UTC) #6
Message was sent while issue was closed.
Committed patchset #5 manually as r15468 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698