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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 }; | 162 }; |
163 | 163 |
164 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); | 164 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); |
165 | 165 |
166 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, | 166 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, |
167 Local<String> source); | 167 Local<String> source); |
168 | 168 |
169 class DebugDelegate { | 169 class DebugDelegate { |
170 public: | 170 public: |
171 virtual ~DebugDelegate() {} | 171 virtual ~DebugDelegate() {} |
172 virtual void PromiseEventOccurred(v8::Local<v8::Context> context, | 172 virtual void PromiseEventOccurred(debug::PromiseDebugActionType type, int id, |
173 debug::PromiseDebugActionType type, int id, | |
174 int parent_id, bool created_by_user) {} | 173 int parent_id, bool created_by_user) {} |
175 virtual void ScriptCompiled(v8::Local<Script> script, | 174 virtual void ScriptCompiled(v8::Local<Script> script, |
176 bool has_compile_error) {} | 175 bool has_compile_error) {} |
177 virtual void BreakProgramRequested(v8::Local<v8::Context> paused_context, | 176 virtual void BreakProgramRequested(v8::Local<v8::Context> paused_context, |
178 v8::Local<v8::Object> exec_state, | 177 v8::Local<v8::Object> exec_state, |
179 v8::Local<v8::Value> break_points_hit) {} | 178 v8::Local<v8::Value> break_points_hit) {} |
180 virtual void ExceptionThrown(v8::Local<v8::Context> paused_context, | 179 virtual void ExceptionThrown(v8::Local<v8::Context> paused_context, |
181 v8::Local<v8::Object> exec_state, | 180 v8::Local<v8::Object> exec_state, |
182 v8::Local<v8::Value> exception, | 181 v8::Local<v8::Value> exception, |
183 v8::Local<v8::Value> promise, bool is_uncaught) { | 182 v8::Local<v8::Value> promise, bool is_uncaught) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 ~Coverage(); | 284 ~Coverage(); |
286 | 285 |
287 private: | 286 private: |
288 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} | 287 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} |
289 i::Coverage* coverage_; | 288 i::Coverage* coverage_; |
290 }; | 289 }; |
291 } // namespace debug | 290 } // namespace debug |
292 } // namespace v8 | 291 } // namespace v8 |
293 | 292 |
294 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 293 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
OLD | NEW |