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

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

Issue 2651793003: [wasm] Test argument passing in the interpreter entry (Closed)
Patch Set: Naming Created 3 years, 10 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
« no previous file with comments | « src/wasm/wasm-macro-gen.h ('k') | test/cctest/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « src/wasm/wasm-macro-gen.h ('k') | test/cctest/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698