Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Unified Diff: src/api.cc

Issue 2710953004: [inspector] added restrictToFunction flag for getPossibleBreakpoints (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/debug/debug.h » ('j') | src/inspector/js_protocol.json » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index f64534c9fc8cdca1e582165e4b25177c0e632fb1..0ead043e3adfa66ce1accd8f57561458eabdc7fb 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -9228,6 +9228,7 @@ int GetSmiValue(i::Handle<i::FixedArray> array, int index) {
bool debug::Script::GetPossibleBreakpoints(
const debug::Location& start, const debug::Location& end,
+ bool ignore_nested_functions,
std::vector<debug::Location>* locations) const {
CHECK(!start.IsEmpty());
i::Handle<i::Script> script = Utils::OpenHandle(this);
@@ -9254,8 +9255,9 @@ bool debug::Script::GetPossibleBreakpoints(
if (start_offset >= end_offset) return true;
std::set<int> offsets;
- if (!isolate->debug()->GetPossibleBreakpoints(script, start_offset,
- end_offset, &offsets)) {
+ if (!isolate->debug()->GetPossibleBreakpoints(
+ script, start_offset, end_offset, ignore_nested_functions,
+ &offsets)) {
return false;
}
« no previous file with comments | « no previous file | src/debug/debug.h » ('j') | src/inspector/js_protocol.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698