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> |
| 9 |
8 #include "include/v8-debug.h" | 10 #include "include/v8-debug.h" |
9 #include "include/v8-util.h" | 11 #include "include/v8-util.h" |
10 #include "include/v8.h" | 12 #include "include/v8.h" |
11 | 13 |
12 #include "src/debug/interface-types.h" | 14 #include "src/debug/interface-types.h" |
13 | 15 |
14 namespace v8 { | 16 namespace v8 { |
15 namespace debug { | 17 namespace debug { |
16 | 18 |
17 /** | 19 /** |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 int NumImportedFunctions() const; | 197 int NumImportedFunctions() const; |
196 | 198 |
197 debug::WasmDisassembly DisassembleFunction(int function_index) const; | 199 debug::WasmDisassembly DisassembleFunction(int function_index) const; |
198 }; | 200 }; |
199 | 201 |
200 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); | 202 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); |
201 | 203 |
202 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, | 204 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, |
203 Local<String> source); | 205 Local<String> source); |
204 | 206 |
| 207 typedef std::function<void(debug::PromiseDebugActionType type, int id, |
| 208 void* data)> |
| 209 AsyncTaskListener; |
| 210 void SetAsyncTaskListener(Isolate* isolate, AsyncTaskListener listener, |
| 211 void* data); |
| 212 |
205 } // namespace debug | 213 } // namespace debug |
206 } // namespace v8 | 214 } // namespace v8 |
207 | 215 |
208 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 216 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
OLD | NEW |