DescriptionCorrectly report callstack when current function is FunctionCall builtin
When current function is FunctionCall builtin we have no reliable way to determine its caller function (in many cases the top of the sampled stack contains address of the caller but sometimes it does not). Instead of dropping the sample or its two top frames we simply mark the caller frame as '(unresolved function)'. It seems like a better approach that dropping whole sample as knowing the top function and the rest of the stack the user should be able to figure out what the caller was.
This change adds builtin id to CodeEntry objects. It will be used later to add similar top frame analysis for FunctionApply and probably other builtins.
BUG=None
R=jkummerow@chromium.org, loislo@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=15426
Patch Set 1 #Patch Set 2 : Removed empty line #
Total comments: 5
Patch Set 3 : Use unresolved function #
Messages
Total messages: 7 (0 generated)
|