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

Unified Diff: src/debug/debug.h

Issue 2465553003: [inspector] added Debugger.getPossibleBreakpoints method (Closed)
Patch Set: it works Created 4 years, 1 month 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 | « src/api.cc ('k') | src/debug/debug.cc » ('j') | src/debug/debug.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.h
diff --git a/src/debug/debug.h b/src/debug/debug.h
index 30cbe77f8b37aa71895d49b54c60c29fe29cd88c..8f4a3efba4fcab0c51f6780a0d1a67512646c800 100644
--- a/src/debug/debug.h
+++ b/src/debug/debug.h
@@ -461,6 +461,8 @@ class Debug {
void ClearStepOut();
bool PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared);
+ bool GetPossibleBreakpoints(Handle<Script> script, int start_position,
+ int end_position, std::vector<int>& positions);
void RecordAsyncFunction(Handle<JSGeneratorObject> generator_object);
@@ -617,6 +619,9 @@ class Debug {
// Find the closest source position for a break point for a given position.
int FindBreakablePosition(Handle<DebugInfo> debug_info, int source_position,
BreakPositionAlignment alignment);
+ bool FindBreakablePositions(Handle<DebugInfo> debug_info, int start_offset,
+ int end_offset, BreakPositionAlignment alignment,
+ std::vector<int>& offsets);
// Instrument code to break at break points.
void ApplyBreakPoints(Handle<DebugInfo> debug_info);
// Clear code from instrumentation.
« no previous file with comments | « src/api.cc ('k') | src/debug/debug.cc » ('j') | src/debug/debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698