v8/test/cctest
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
..
cctest.cc Reverting 3174. Aka reapplying 3150, 3151 and 3159. Aka api accessor 2009-11-04 08:51:48 +00:00
cctest.h Reverting 3174. Aka reapplying 3150, 3151 and 3159. Aka api accessor 2009-11-04 08:51:48 +00:00
cctest.status Fix map compact implementation. 2010-01-21 14:22:28 +00:00
SConscript Changed keyword token recognition to be done inline in the identifier scanner. 2009-11-05 10:11:38 +00:00
test-accessors.cc Fixed problem where popping a handle scope after calling an accessor 2009-11-06 11:35:47 +00:00
test-alloc.cc Fix compilation error in r3352 2009-11-24 15:16:02 +00:00
test-api.cc Fix issue 582: preserve construct stub on first allocation in case we can't optimize it. 2010-01-20 14:43:12 +00:00
test-assembler-arm.cc Compile fixes for ARM and miscellaneous spolling. 2009-09-09 09:35:34 +00:00
test-assembler-ia32.cc Allow a platform to indicate that some CPU features are always 2009-11-13 12:32:57 +00:00
test-assembler-x64.cc Fix warnings on Win64. 2009-11-11 09:50:06 +00:00
test-ast.cc Fix broken test compilation. 2009-07-30 12:25:24 +00:00
test-compiler.cc Move InitLineEnds and GetLineNumber to handles.cc to avoid 2009-03-10 15:08:45 +00:00
test-conversions.cc Make 'hidden' the default visibility for gcc. Add build option, 2009-09-15 11:11:09 +00:00
test-debug.cc Fix lint error with strtol in test 2010-01-20 18:27:44 +00:00
test-decls.cc Fix errors in test-heap.cc and test-decls.cc. Adjust cctest.status. 2009-08-18 12:43:36 +00:00
test-disasm-arm.cc Reapply ARM root array change to reduce const pool size 2009-08-24 11:57:57 +00:00
test-disasm-ia32.cc Implement inline string compare on ARM. 2010-01-21 12:10:56 +00:00
test-flags.cc Fix warnings on Win64. 2009-11-11 09:50:06 +00:00
test-func-name-inference.cc Fix issue 380. 2009-06-16 11:47:00 +00:00
test-hashmap.cc Make the hash map test run faster by doing less work. 2009-05-15 13:49:00 +00:00
test-heap-profiler.cc Fix warnings on Win64. 2009-11-11 09:50:06 +00:00
test-heap.cc Remove the different length string types 2009-11-24 14:10:06 +00:00
test-list.cc Remove list copy constructor (for which there was no corresponding 2009-05-22 11:52:24 +00:00
test-lock.cc Added a wait with timeout to the platform semaphore class. 2009-03-18 09:04:24 +00:00
test-log-stack-tracer.cc Fix issue 553: function frame is skipped in profile when compare stub is called. 2010-01-21 16:42:41 +00:00
test-log-utils.cc Fix warnings on Win64. 2009-11-11 09:50:06 +00:00
test-log.cc Fix issue 553: function frame is skipped in profile when compare stub is called. 2010-01-21 16:42:41 +00:00
test-macro-assembler-x64.cc Use uint64_t to keep 64 MacOS happy. 2009-12-10 17:46:45 +00:00
test-mark-compact.cc A simple test for map compact. 2010-01-19 16:34:37 +00:00
test-parsing.cc Fix warnings on Win64. 2009-11-11 09:50:06 +00:00
test-platform-linux.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-platform-macos.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-platform-nullos.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-platform-win32.cc Changed copyright header from google inc. to v8 project authors. 2008-09-09 20:08:45 +00:00
test-regexp.cc Make sure to use the CHECK_PARSE_ERROR macro (and thereby 2010-01-08 06:40:09 +00:00
test-serialize.cc Fix test-serialize. 2010-01-18 16:56:17 +00:00
test-sockets.cc Fixed some cctest flakiness on mac. 2009-09-25 10:36:00 +00:00
test-spaces.cc Allow resource constraints to specify the max committed new space size 2009-10-21 15:03:34 +00:00
test-strings.cc Fix compilation errors on some compilers 2009-12-03 08:32:04 +00:00
test-thread-termination.cc Re-enable all declarations in fast top-level compiler. 2009-11-24 12:23:29 +00:00
test-threads.cc Add support for forceful termination of JavaScript execution. 2009-08-19 15:14:11 +00:00
test-utils.cc Fix warnings on Win64. 2009-11-11 09:50:06 +00:00
test-version.cc Split nested namespaces declaration in two lines in accordance with C++ Style Guide. 2009-05-25 10:05:56 +00:00
testcfg.py Add verification flags to debug mjsunit test runs. 2009-09-02 12:40:00 +00:00