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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 }; | 132 }; |
133 | 133 |
134 // Specialization for wasm Scripts. | 134 // Specialization for wasm Scripts. |
135 class WasmScript : public Script { | 135 class WasmScript : public Script { |
136 public: | 136 public: |
137 static WasmScript* Cast(Script* script); | 137 static WasmScript* Cast(Script* script); |
138 | 138 |
139 int NumFunctions() const; | 139 int NumFunctions() const; |
140 int NumImportedFunctions() const; | 140 int NumImportedFunctions() const; |
141 | 141 |
| 142 std::pair<int, int> GetFunctionRange(int function_index) const; |
| 143 |
142 debug::WasmDisassembly DisassembleFunction(int function_index) const; | 144 debug::WasmDisassembly DisassembleFunction(int function_index) const; |
143 }; | 145 }; |
144 | 146 |
145 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); | 147 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); |
146 | 148 |
147 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, | 149 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, |
148 Local<String> source); | 150 Local<String> source); |
149 | 151 |
150 class DebugDelegate { | 152 class DebugDelegate { |
151 public: | 153 public: |
(...skipping 18 matching lines...) Expand all Loading... |
170 | 172 |
171 void SetDebugDelegate(Isolate* isolate, DebugDelegate* listener); | 173 void SetDebugDelegate(Isolate* isolate, DebugDelegate* listener); |
172 | 174 |
173 void ResetBlackboxedStateCache(Isolate* isolate, | 175 void ResetBlackboxedStateCache(Isolate* isolate, |
174 v8::Local<debug::Script> script); | 176 v8::Local<debug::Script> script); |
175 | 177 |
176 } // namespace debug | 178 } // namespace debug |
177 } // namespace v8 | 179 } // namespace v8 |
178 | 180 |
179 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 181 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
OLD | NEW |