diff options
Diffstat (limited to 'chromium/v8/src/wasm/wasm-debug.h')
| -rw-r--r-- | chromium/v8/src/wasm/wasm-debug.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/chromium/v8/src/wasm/wasm-debug.h b/chromium/v8/src/wasm/wasm-debug.h index 1eacd6ff526..6050cb3a58b 100644 --- a/chromium/v8/src/wasm/wasm-debug.h +++ b/chromium/v8/src/wasm/wasm-debug.h @@ -91,6 +91,8 @@ class DebugSideTable { return values_[index].reg_code; } + void Print(std::ostream&) const; + private: int pc_offset_; std::vector<Value> values_; @@ -120,6 +122,8 @@ class DebugSideTable { int num_locals() const { return num_locals_; } + void Print(std::ostream&) const; + private: struct EntryPositionLess { bool operator()(const Entry& a, const Entry& b) const { @@ -145,11 +149,11 @@ class V8_EXPORT_PRIVATE DebugInfo { // For the frame inspection methods below: // {fp} is the frame pointer of the Liftoff frame, {debug_break_fp} that of // the {WasmDebugBreak} frame (if any). - int GetNumLocals(Isolate*, Address pc); - WasmValue GetLocalValue(int local, Isolate*, Address pc, Address fp, + int GetNumLocals(Address pc); + WasmValue GetLocalValue(int local, Address pc, Address fp, Address debug_break_fp); - int GetStackDepth(Isolate*, Address pc); - WasmValue GetStackValue(int index, Isolate*, Address pc, Address fp, + int GetStackDepth(Address pc); + WasmValue GetStackValue(int index, Address pc, Address fp, Address debug_break_fp); Handle<JSObject> GetLocalScopeObject(Isolate*, Address pc, Address fp, @@ -164,7 +168,7 @@ class V8_EXPORT_PRIVATE DebugInfo { void PrepareStep(Isolate*, StackFrameId); - void ClearStepping(); + void ClearStepping(Isolate*); bool IsStepping(WasmFrame*); @@ -172,6 +176,12 @@ class V8_EXPORT_PRIVATE DebugInfo { void RemoveDebugSideTables(Vector<WasmCode* const>); + // Return the debug side table for the given code object, but only if it has + // already been created. This will never trigger generation of the table. + DebugSideTable* GetDebugSideTableIfExists(const WasmCode*) const; + + void RemoveIsolate(Isolate*); + private: std::unique_ptr<DebugInfoImpl> impl_; }; |
