DescriptionCorrectly 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 #
Messages
Total messages: 6 (0 generated)
|