| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 97024ccc650b60b9950ed2224b80e58d20365562..1ff36831a1ae8b14b4e23557bfd2f29229c59dc3 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -9124,17 +9124,18 @@ void debug::PrepareStep(Isolate* v8_isolate, StepAction action) {
|
| isolate->debug()->PrepareStep(static_cast<i::StepAction>(action));
|
| }
|
|
|
| +void debug::ClearStepping(Isolate* v8_isolate) {
|
| + i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
|
| + ENTER_V8(isolate);
|
| + CHECK(isolate->debug()->CheckExecutionState());
|
| + // Clear all current stepping setup.
|
| + isolate->debug()->ClearStepping();
|
| +}
|
| +
|
| bool debug::HasNonBlackboxedFrameOnStack(Isolate* v8_isolate) {
|
| i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
|
| ENTER_V8(isolate);
|
| - i::HandleScope scope(isolate);
|
| - for (i::StackTraceFrameIterator it(isolate); !it.done(); it.Advance()) {
|
| - if (!it.is_javascript()) continue;
|
| - if (!isolate->debug()->IsFrameBlackboxed(it.javascript_frame())) {
|
| - return true;
|
| - }
|
| - }
|
| - return false;
|
| + return isolate->debug()->HasNonBlackboxedFrameOnStack();
|
| }
|
|
|
| v8::Isolate* debug::Script::GetIsolate() const {
|
|
|