Index: src/wasm/wasm-objects.h |
diff --git a/src/wasm/wasm-objects.h b/src/wasm/wasm-objects.h |
index 1765d139b6bedcd818eb66154b91b6ef42b09622..29d12dd2ccba02ab00bc394058dced283ecdc666 100644 |
--- a/src/wasm/wasm-objects.h |
+++ b/src/wasm/wasm-objects.h |
@@ -14,6 +14,7 @@ |
namespace v8 { |
namespace internal { |
namespace wasm { |
+class InterpretedFrame; |
struct WasmModule; |
} |
@@ -390,6 +391,10 @@ class WasmCompiledModule : public FixedArray { |
static bool SetBreakPoint(Handle<WasmCompiledModule>, int* position, |
Handle<Object> break_point_object); |
+ // Get the BreakLocation identifying the given position. Must only be called |
+ // with valid (breakable) positions. |
+ BreakLocation GetBreakLocation(int position); |
+ |
// Return an empty handle if no breakpoint is hit at that location, or a |
// FixedArray with all hit breakpoint objects. |
MaybeHandle<FixedArray> CheckBreakPoints(const BreakLocation& location); |
@@ -419,6 +424,12 @@ class WasmDebugInfo : public FixedArray { |
static void RunInterpreter(Handle<WasmDebugInfo>, int func_index, |
uint8_t* arg_buffer); |
+ static std::vector<std::pair<uint32_t, int>> GetInterpretedStack( |
+ Handle<WasmDebugInfo>, Address frame_pointer); |
+ |
+ static std::unique_ptr<wasm::InterpretedFrame> GetInterpretedFrame( |
+ Handle<WasmDebugInfo>, Address frame_pointer, int idx); |
+ |
DECLARE_GETTER(wasm_instance, WasmInstanceObject); |
}; |