Index: src/debug/debug.cc |
diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
index a7bce4083b90c8ed2915d926be4401851258f72d..40dad97e74f9940a2a5bdca226c41335c935dd0d 100644 |
--- a/src/debug/debug.cc |
+++ b/src/debug/debug.cc |
@@ -1668,45 +1668,6 @@ Handle<FixedArray> Debug::GetLoadedScripts() { |
} |
-void Debug::GetStepinPositions(JavaScriptFrame* frame, StackFrame::Id frame_id, |
- List<int>* results_out) { |
- FrameSummary summary = GetFirstFrameSummary(frame); |
- |
- Handle<JSFunction> fun = Handle<JSFunction>(summary.function()); |
- Handle<SharedFunctionInfo> shared = Handle<SharedFunctionInfo>(fun->shared()); |
- |
- if (!EnsureDebugInfo(shared, fun)) return; |
- |
- Handle<DebugInfo> debug_info(shared->GetDebugInfo()); |
- // Refresh frame summary if the code has been recompiled for debugging. |
- if (AbstractCode::cast(shared->code()) != *summary.abstract_code()) { |
- summary = GetFirstFrameSummary(frame); |
- } |
- |
- int call_offset = |
- CallOffsetFromCodeOffset(summary.code_offset(), frame->is_interpreted()); |
- List<BreakLocation> locations; |
- BreakLocation::FromCodeOffsetSameStatement(debug_info, call_offset, |
Yang
2016/03/10 01:48:24
This method can be removed as well, I think.
kozy
2016/03/10 02:05:13
Done!
|
- &locations); |
- |
- for (BreakLocation location : locations) { |
- if (location.code_offset() <= summary.code_offset()) { |
- // The break point is near our pc. Could be a step-in possibility, |
- // that is currently taken by active debugger call. |
- if (break_frame_id() == StackFrame::NO_ID) { |
- continue; // We are not stepping. |
- } else { |
- JavaScriptFrameIterator frame_it(isolate_, break_frame_id()); |
- // If our frame is a top frame and we are stepping, we can do step-in |
- // at this place. |
- if (frame_it.frame()->id() != frame_id) continue; |
- } |
- } |
- if (location.IsCall()) results_out->Add(location.position()); |
- } |
-} |
- |
- |
void Debug::RecordEvalCaller(Handle<Script> script) { |
script->set_compilation_type(Script::COMPILATION_TYPE_EVAL); |
// For eval scripts add information on the function from which eval was |