| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 /** | 123 /** |
| 124 * Native wrapper around v8::internal::Script object. | 124 * Native wrapper around v8::internal::Script object. |
| 125 */ | 125 */ |
| 126 class V8_EXPORT_PRIVATE Script { | 126 class V8_EXPORT_PRIVATE Script { |
| 127 public: | 127 public: |
| 128 v8::Isolate* GetIsolate() const; | 128 v8::Isolate* GetIsolate() const; |
| 129 | 129 |
| 130 ScriptOriginOptions OriginOptions() const; | 130 ScriptOriginOptions OriginOptions() const; |
| 131 bool WasCompiled() const; | 131 bool WasCompiled() const; |
| 132 bool IsEmbedded() const; | |
| 133 int Id() const; | 132 int Id() const; |
| 134 int LineOffset() const; | 133 int LineOffset() const; |
| 135 int ColumnOffset() const; | 134 int ColumnOffset() const; |
| 136 std::vector<int> LineEnds() const; | 135 std::vector<int> LineEnds() const; |
| 137 MaybeLocal<String> Name() const; | 136 MaybeLocal<String> Name() const; |
| 138 MaybeLocal<String> SourceURL() const; | 137 MaybeLocal<String> SourceURL() const; |
| 139 MaybeLocal<String> SourceMappingURL() const; | 138 MaybeLocal<String> SourceMappingURL() const; |
| 140 Maybe<int> ContextId() const; | 139 MaybeLocal<Value> ContextData() const; |
| 141 MaybeLocal<String> Source() const; | 140 MaybeLocal<String> Source() const; |
| 142 bool IsWasm() const; | 141 bool IsWasm() const; |
| 143 bool IsModule() const; | 142 bool IsModule() const; |
| 144 bool GetPossibleBreakpoints( | 143 bool GetPossibleBreakpoints( |
| 145 const debug::Location& start, const debug::Location& end, | 144 const debug::Location& start, const debug::Location& end, |
| 146 bool restrict_to_function, | 145 bool restrict_to_function, |
| 147 std::vector<debug::BreakLocation>* locations) const; | 146 std::vector<debug::BreakLocation>* locations) const; |
| 148 int GetSourceOffset(const debug::Location& location) const; | 147 int GetSourceOffset(const debug::Location& location) const; |
| 149 v8::debug::Location GetSourceLocation(int offset) const; | 148 v8::debug::Location GetSourceLocation(int offset) const; |
| 150 }; | 149 }; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 ~Coverage(); | 289 ~Coverage(); |
| 291 | 290 |
| 292 private: | 291 private: |
| 293 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} | 292 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} |
| 294 i::Coverage* coverage_; | 293 i::Coverage* coverage_; |
| 295 }; | 294 }; |
| 296 } // namespace debug | 295 } // namespace debug |
| 297 } // namespace v8 | 296 } // namespace v8 |
| 298 | 297 |
| 299 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 298 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
| OLD | NEW |