Provide more functions to CPU profiler (fix issue 858).
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 24 Sep 2010 11:45:12 +0000 (11:45 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 24 Sep 2010 11:45:12 +0000 (11:45 +0000)
commit8f22667805f37ce9e2a9d550a07fe7ac33aa58c5
treea3da54bd8538ac7409f13220923bfd19ae97ba9c
parenta26a9b74abfc3561532a28e4a1c49303eee61e2b
Provide more functions to CPU profiler (fix issue 858).

The cause for missing functions is that some of them are created
from compiled code (see FastNewClosureStub), and thus not get
registered in profiler's code map.

My solution is to hook on GC visitor to provide JS functions
addresses to profiler, only if it is enabled.

BUG=858
TEST=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5523 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/cpu-profiler.cc
src/cpu-profiler.h
src/heap.cc
src/log.cc
src/log.h
src/mark-compact.cc
src/objects-inl.h
src/profile-generator.cc
src/profile-generator.h
src/stub-cache.cc