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