Chromium Code Reviews

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

Issue 2728563002: [inspector] added type of break location into getPossibleBreakpoints output (Closed)
Patch Set: fixed compilation Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/debug/interface-types.h
diff --git a/src/debug/interface-types.h b/src/debug/interface-types.h
index b86986dee4c30719406d393253706c96a5129985..eb11e822840d50074f89ca9ce59be3ed4fc6608e 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,25 @@ enum PromiseDebugActionType {
kDebugDidHandle,
};
+class V8_EXPORT_PRIVATE BreakLocation : public Location {
+ public:
+ BreakLocation(int line_number, int column_number, bool is_call,
+ bool is_return, bool is_debugger_statement)
+ : Location(line_number, column_number),
+ is_call_(is_call),
+ is_return_(is_return),
+ is_debugger_statement_(is_debugger_statement) {}
+
+ bool IsCall() { return is_call_; }
+ bool IsReturn() { return is_return_; }
+ bool IsDebuggerStatement() { return is_debugger_statement_; }
+
+ private:
+ bool is_call_;
Yang 2017/03/02 20:06:57 This could also be an enum. Just saying :)
kozy 2017/03/02 22:38:09 Done.
+ bool is_return_;
+ bool is_debugger_statement_;
+};
+
} // namespace debug
} // namespace v8
« src/api.cc ('K') | « src/debug/debug-interface.h ('k') | src/inspector/js_protocol.json » ('j') | no next file with comments »

Powered by Google App Engine