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

Unified Diff: src/debug/interface-types.h

Issue 2728563002: [inspector] added type of break location into getPossibleBreakpoints output (Closed)
Patch Set: added DCHECK Created 3 years, 9 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 | « src/debug/debug-interface.h ('k') | src/inspector/js_protocol.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/interface-types.h
diff --git a/src/debug/interface-types.h b/src/debug/interface-types.h
index b86986dee4c30719406d393253706c96a5129985..82eb2f2abbc12e8dd42f40b2d4d86efc2275744c 100644
--- a/src/debug/interface-types.h
+++ b/src/debug/interface-types.h
@@ -50,6 +50,7 @@ struct WasmDisassemblyOffsetTableEntry {
int line;
int column;
};
+
struct WasmDisassembly {
using OffsetTable = std::vector<WasmDisassemblyOffsetTableEntry>;
WasmDisassembly() {}
@@ -71,6 +72,24 @@ enum PromiseDebugActionType {
kDebugDidHandle,
};
+enum BreakLocationType {
+ kCallBreakLocation,
+ kReturnBreakLocation,
+ kDebuggerStatementBreakLocation,
+ kCommonBreakLocation
+};
+
+class V8_EXPORT_PRIVATE BreakLocation : public Location {
+ public:
+ BreakLocation(int line_number, int column_number, BreakLocationType type)
+ : Location(line_number, column_number), type_(type) {}
+
+ BreakLocationType type() const { return type_; }
+
+ private:
+ BreakLocationType type_;
+};
+
} // namespace debug
} // namespace v8
« no previous file with comments | « src/debug/debug-interface.h ('k') | src/inspector/js_protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698