Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: src/wasm/wasm-objects.h

Issue 2629823003: [wasm] Implement frame inspection for interpreted frames (Closed)
Patch Set: Document that the forward declaration is only needed for VS Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698