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 |