Fix reporting of impossible nested calls of DOM functions.

It turns out that having PC pointing _exactly_ at callback entry
point is quite probable.

BUG=crbug/60753

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5721 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 9a1c80e4
......@@ -164,7 +164,10 @@ void StackTracer::Trace(TickSample* sample) {
int i = 0;
const Address callback = VMState::external_callback();
if (callback != NULL) {
// Surprisingly, PC can point _exactly_ to callback start, with good
// probability, and this will result in reporting fake nested
// callback call.
if (callback != NULL && callback != sample->pc) {
sample->stack[i++] = callback;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment