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