| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_ | 5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_ |
| 6 #define V8_DEBUG_DEBUG_INTERFACE_H_ | 6 #define V8_DEBUG_DEBUG_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <functional> | 8 #include <functional> |
| 9 | 9 |
| 10 #include "include/v8-debug.h" | 10 #include "include/v8-debug.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 int LineOffset() const; | 128 int LineOffset() const; |
| 129 int ColumnOffset() const; | 129 int ColumnOffset() const; |
| 130 std::vector<int> LineEnds() const; | 130 std::vector<int> LineEnds() const; |
| 131 MaybeLocal<String> Name() const; | 131 MaybeLocal<String> Name() const; |
| 132 MaybeLocal<String> SourceURL() const; | 132 MaybeLocal<String> SourceURL() const; |
| 133 MaybeLocal<String> SourceMappingURL() const; | 133 MaybeLocal<String> SourceMappingURL() const; |
| 134 MaybeLocal<Value> ContextData() const; | 134 MaybeLocal<Value> ContextData() const; |
| 135 MaybeLocal<String> Source() const; | 135 MaybeLocal<String> Source() const; |
| 136 bool IsWasm() const; | 136 bool IsWasm() const; |
| 137 bool IsModule() const; | 137 bool IsModule() const; |
| 138 bool GetPossibleBreakpoints(const debug::Location& start, | 138 bool GetPossibleBreakpoints( |
| 139 const debug::Location& end, | 139 const debug::Location& start, const debug::Location& end, |
| 140 bool restrict_to_function, | 140 bool restrict_to_function, |
| 141 std::vector<debug::Location>* locations) const; | 141 std::vector<debug::BreakLocation>* locations) const; |
| 142 int GetSourceOffset(const debug::Location& location) const; | 142 int GetSourceOffset(const debug::Location& location) const; |
| 143 v8::debug::Location GetSourceLocation(int offset) const; | 143 v8::debug::Location GetSourceLocation(int offset) const; |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 // Specialization for wasm Scripts. | 146 // Specialization for wasm Scripts. |
| 147 class WasmScript : public Script { | 147 class WasmScript : public Script { |
| 148 public: | 148 public: |
| 149 static WasmScript* Cast(Script* script); | 149 static WasmScript* Cast(Script* script); |
| 150 | 150 |
| 151 int NumFunctions() const; | 151 int NumFunctions() const; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 ~Coverage(); | 255 ~Coverage(); |
| 256 | 256 |
| 257 private: | 257 private: |
| 258 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} | 258 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} |
| 259 i::Coverage* coverage_; | 259 i::Coverage* coverage_; |
| 260 }; | 260 }; |
| 261 } // namespace debug | 261 } // namespace debug |
| 262 } // namespace v8 | 262 } // namespace v8 |
| 263 | 263 |
| 264 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 264 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
| OLD | NEW |