| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 8ddc494428f9726df604c0c4808e5666b1cf6c28..b72bb3e9dbfbd3884a954949ad85b6bbb48462d3 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -457,8 +457,8 @@ RUNTIME_FUNCTION(Runtime_GetFrameCount) {
|
| List<FrameSummary> frames(FLAG_max_inlining_levels + 1);
|
| it.frame()->Summarize(&frames);
|
| for (int i = frames.length() - 1; i >= 0; i--) {
|
| - // Omit functions from native scripts.
|
| - if (!frames[i].function()->IsFromNativeScript()) n++;
|
| + // Omit functions from native and extension scripts.
|
| + if (frames[i].function()->IsSubjectToDebugging()) n++;
|
| }
|
| }
|
| return Smi::FromInt(n);
|
| @@ -583,8 +583,8 @@ int Runtime::FindIndexedNonNativeFrame(JavaScriptFrameIterator* it, int index) {
|
| List<FrameSummary> frames(FLAG_max_inlining_levels + 1);
|
| it->frame()->Summarize(&frames);
|
| for (int i = frames.length() - 1; i >= 0; i--) {
|
| - // Omit functions from native scripts.
|
| - if (frames[i].function()->IsFromNativeScript()) continue;
|
| + // Omit functions from native and extension scripts.
|
| + if (!frames[i].function()->IsSubjectToDebugging()) continue;
|
| if (++count == index) return i;
|
| }
|
| }
|
|
|