v8/test/mjsunit/tools
mikhail.naganov@gmail.com 999e3fca90 Fix issue 553: function frame is skipped in profile when compare stub is called.
The problem appeared due to a fact that stubs doesn't create a stack
frame, reusing the stack frame of the caller function. When building
stack traces, the current function is retrieved from PC, and its
callees are retrieved by traversing the stack backwards. Thus, for
stubs, the stub itself was discovered via PC, and then stub's caller's
caller was retrieved from stack.

To fix this problem, a pointer to JSFunction object is now captured
from the topmost stack frame, and is saved into stack trace log
record. Then a simple heuristics is applied whether a referred
function should be added to decoded stack, or not, to avoid reporting
the same function twice (from PC and from the pointer.)

BUG=553
TEST=added to mjsunit/tools/tickprocessor

Review URL: http://codereview.chromium.org/546089

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3673 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2010-01-21 16:42:41 +00:00
..
codemap.js TickProcessor: more accurate mapping of statically compiled code on Linux. 2009-07-14 09:47:44 +00:00
consarray.js TickProcessor script reimplemented in JavaScript. 2009-04-27 13:50:42 +00:00
csvparser.js Implemented a CSV parser in JavaScript. 2009-04-17 17:58:14 +00:00
logreader.js Fix issue 553: function frame is skipped in profile when compare stub is called. 2010-01-21 16:42:41 +00:00
profile_view.js Rename profileview.js -> profile_view.js because WebInspector already has ProfileView.js. 2009-04-28 09:15:31 +00:00
profile.js TickProcessor: more accurate mapping of statically compiled code on Linux. 2009-07-14 09:47:44 +00:00
splaytree.js Reimplement Splay Tree in JavaScript (and add unit tests!). 2009-04-15 01:22:52 +00:00
tickprocessor-test-func-info.log Fix issue 553: function frame is skipped in profile when compare stub is called. 2010-01-21 16:42:41 +00:00
tickprocessor-test.default TickProcessor: more accurate mapping of statically compiled code on Linux. 2009-07-14 09:47:44 +00:00
tickprocessor-test.func-info Fix issue 553: function frame is skipped in profile when compare stub is called. 2010-01-21 16:42:41 +00:00
tickprocessor-test.gc-state Add automatic tests for Tick Processor, take two. 2009-07-09 06:39:38 +00:00
tickprocessor-test.ignore-unknown TickProcessor: more accurate mapping of statically compiled code on Linux. 2009-07-14 09:47:44 +00:00
tickprocessor-test.log Fix issue 553: function frame is skipped in profile when compare stub is called. 2010-01-21 16:42:41 +00:00
tickprocessor-test.separate-ic TickProcessor: more accurate mapping of statically compiled code on Linux. 2009-07-14 09:47:44 +00:00
tickprocessor.js Fix issue 553: function frame is skipped in profile when compare stub is called. 2010-01-21 16:42:41 +00:00