diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/v8/src/wasm/wasm-debug.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
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_; }; |