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

Unified Diff: src/api.cc

Issue 2710953004: [inspector] added restrictToFunction flag for getPossibleBreakpoints (Closed)
Patch Set: addressed comments 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') | no next file with comments »
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..d95ee75f4d70002d2aa7bdaca1463c61ead0f9ec 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -9228,7 +9228,7 @@ int GetSmiValue(i::Handle<i::FixedArray> array, int index) {
bool debug::Script::GetPossibleBreakpoints(
const debug::Location& start, const debug::Location& end,
- std::vector<debug::Location>* locations) const {
+ bool restrict_to_function, std::vector<debug::Location>* locations) const {
CHECK(!start.IsEmpty());
i::Handle<i::Script> script = Utils::OpenHandle(this);
if (script->type() == i::Script::TYPE_WASM) {
@@ -9254,8 +9254,8 @@ 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, restrict_to_function, &offsets)) {
return false;
}
« no previous file with comments | « no previous file | src/debug/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698