| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 class WasmScript : public Script { | 180 class WasmScript : public Script { |
| 181 public: | 181 public: |
| 182 static WasmScript* Cast(Script* script); | 182 static WasmScript* Cast(Script* script); |
| 183 | 183 |
| 184 int NumFunctions() const; | 184 int NumFunctions() const; |
| 185 int NumImportedFunctions() const; | 185 int NumImportedFunctions() const; |
| 186 | 186 |
| 187 debug::WasmDisassembly DisassembleFunction(int function_index) const; | 187 debug::WasmDisassembly DisassembleFunction(int function_index) const; |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 class AsyncTaskEventData { |
| 191 public: |
| 192 AsyncTaskEventType type() const; |
| 193 int id() const; |
| 194 MaybeLocal<String> name() const; |
| 195 static AsyncTaskEventData* Cast(Value* value); |
| 196 }; |
| 197 |
| 190 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); | 198 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); |
| 191 | 199 |
| 192 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, | 200 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, |
| 193 Local<String> source); | 201 Local<String> source); |
| 194 | 202 |
| 195 } // namespace debug | 203 } // namespace debug |
| 196 } // namespace v8 | 204 } // namespace v8 |
| 197 | 205 |
| 198 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 206 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
| OLD | NEW |