Index: src/wasm/wasm-objects.h |
diff --git a/src/wasm/wasm-objects.h b/src/wasm/wasm-objects.h |
index d0212e49f0173fdf9399ce0b2d0af8dc06776cf6..c526a909b1ed2720cc70d6d040315911415f2b34 100644 |
--- a/src/wasm/wasm-objects.h |
+++ b/src/wasm/wasm-objects.h |
@@ -420,8 +420,15 @@ class WasmDebugInfo : public FixedArray { |
static bool IsDebugInfo(Object*); |
static WasmDebugInfo* cast(Object*); |
+ // Set a breakpoint in the given function at the given byte offset within that |
+ // function. This will redirect all future calls to this function to the |
+ // interpreter and will always pause at the given offset. |
static void SetBreakpoint(Handle<WasmDebugInfo>, int func_index, int offset); |
+ // Make a function always execute in the interpreter without setting a |
+ // breakpoints. |
+ static void RedirectToInterpreter(Handle<WasmDebugInfo>, int func_index); |
+ |
void PrepareStep(StepAction); |
void RunInterpreter(int func_index, uint8_t* arg_buffer); |
@@ -434,6 +441,9 @@ class WasmDebugInfo : public FixedArray { |
std::unique_ptr<wasm::InterpretedFrame> GetInterpretedFrame( |
Address frame_pointer, int idx); |
+ // Returns the number of calls / function frames executed in the interpreter. |
+ uint64_t NumInterpretedCalls(); |
+ |
DECLARE_GETTER(wasm_instance, WasmInstanceObject); |
}; |