[wasm] Fix walking WasmLiftoffSetupFrame [v8/v8 : main]

0 views
Skip to first unread message

Jakob Kummerow (Gerrit)

unread,
Mar 10, 2026, 5:09:33 PMMar 10
to Jakob Kummerow, Clemens Backes, v8-mip...@googlegroups.com, v8-ppc...@googlegroups.com, v8-re...@googlegroups.com, v8-risc...@chromium.org
Attention needed from Clemens Backes

Jakob Kummerow voted and added 1 comment

Votes added by Jakob Kummerow

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Jakob Kummerow . resolved

PTAL.

No regression test because the repro we have would just run forever after the fix.

Note to platform ports teams: to determine the right constant to define, look at the spilling code in `Builtins::Generate_WasmLiftoffFrameSetup` for your platform. Any existing comments in `WasmLiftoffSetupFrameConstants` might also be helpful.

Open in Gerrit

Related details

Attention is currently required from:
  • Clemens Backes
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I448d6f35eaa9761cbfe1c852a273f240f782df84
Gerrit-Change-Number: 7653477
Gerrit-PatchSet: 1
Gerrit-Owner: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Attention: Clemens Backes <clem...@chromium.org>
Gerrit-Comment-Date: Tue, 10 Mar 2026 21:09:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Clemens Backes (Gerrit)

unread,
Mar 11, 2026, 6:20:11 AMMar 11
to Jakob Kummerow, V8 LUCI CQ, v8-mip...@googlegroups.com, v8-ppc...@googlegroups.com, v8-re...@googlegroups.com, v8-risc...@chromium.org
Attention needed from Jakob Kummerow

Clemens Backes voted and added 2 comments

Votes added by Clemens Backes

Code-Review+1

2 comments

Patchset-level comments
Clemens Backes . resolved

Nice, LGTM.

File src/execution/frames.h
Line 1587, Patchset 1 (Latest): int GetDeclaredFunctionIndex() const;
Clemens Backes . unresolved

As discussed, this shouldn't be needed any more. But it's a minor cleanup and can be done separately.

Open in Gerrit

Related details

Attention is currently required from:
  • Jakob Kummerow
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I448d6f35eaa9761cbfe1c852a273f240f782df84
Gerrit-Change-Number: 7653477
Gerrit-PatchSet: 1
Gerrit-Owner: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Attention: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Comment-Date: Wed, 11 Mar 2026 10:20:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Jakob Kummerow (Gerrit)

unread,
Mar 11, 2026, 3:16:16 PMMar 11
to Jakob Kummerow, Clemens Backes, V8 LUCI CQ, v8-mip...@googlegroups.com, v8-ppc...@googlegroups.com, v8-re...@googlegroups.com, v8-risc...@chromium.org

Jakob Kummerow voted and added 2 comments

Votes added by Jakob Kummerow

Commit-Queue+2

2 comments

Patchset-level comments
Jakob Kummerow . resolved

Thanks for the review! Landing.

File src/execution/frames.h
Line 1587, Patchset 1 (Latest): int GetDeclaredFunctionIndex() const;
Clemens Backes . resolved

As discussed, this shouldn't be needed any more. But it's a minor cleanup and can be done separately.

Jakob Kummerow

It's a little more than a cleanup: we'd have to pull the code lookup before the early return for no tagged parameters. I'll leave it as is for now.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I448d6f35eaa9761cbfe1c852a273f240f782df84
    Gerrit-Change-Number: 7653477
    Gerrit-PatchSet: 1
    Gerrit-Owner: Jakob Kummerow <jkum...@chromium.org>
    Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
    Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
    Gerrit-Comment-Date: Wed, 11 Mar 2026 19:16:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Clemens Backes <clem...@chromium.org>
    satisfied_requirement
    open
    diffy

    V8 LUCI CQ (Gerrit)

    unread,
    Mar 11, 2026, 3:17:53 PMMar 11
    to Jakob Kummerow, Clemens Backes, v8-mip...@googlegroups.com, v8-ppc...@googlegroups.com, v8-re...@googlegroups.com, v8-risc...@chromium.org

    V8 LUCI CQ submitted the change

    Change information

    Commit message:
    [wasm] Fix walking WasmLiftoffSetupFrame

    It can happen that a Liftoff code object that just called its own
    frame setup has immediately afterwards been flushed due to memory
    pressure. In that case, we can't look it up by func index via the
    NativeModule (because that would return nullptr); instead we must
    look it up by contained PC address via the WasmCodeManager.
    Fixed: 490980546
    Change-Id: I448d6f35eaa9761cbfe1c852a273f240f782df84
    Reviewed-by: Clemens Backes <clem...@chromium.org>
    Commit-Queue: Jakob Kummerow <jkum...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#105744}
    Files:
    • M src/execution/arm/frame-constants-arm.h
    • M src/execution/arm64/frame-constants-arm64.h
    • M src/execution/frames.cc
    • M src/execution/frames.h
    • M src/execution/ia32/frame-constants-ia32.h
    • M src/execution/x64/frame-constants-x64.h
    Change size: S
    Delta: 6 files changed, 14 insertions(+), 1 deletion(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Clemens Backes
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I448d6f35eaa9761cbfe1c852a273f240f782df84
    Gerrit-Change-Number: 7653477
    Gerrit-PatchSet: 2
    Gerrit-Owner: Jakob Kummerow <jkum...@chromium.org>
    Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
    Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
    open
    diffy
    satisfied_requirement

    Ji Qiu (Gerrit)

    unread,
    Mar 12, 2026, 2:30:35 AMMar 12
    to Yahan Lu (LuYahan), V8 LUCI CQ, v8-re...@googlegroups.com, v8-risc...@chromium.org
    Attention needed from Yahan Lu (LuYahan)

    Ji Qiu voted and added 1 comment

    Votes added by Ji Qiu

    Code-Review+1
    Commit-Queue+2

    1 comment

    Patchset-level comments
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Yahan Lu (LuYahan)
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I7e8b4c78536f7b1c070302ce04e9ce67d401d42c
    Gerrit-Change-Number: 7660033
    Gerrit-PatchSet: 3
    Gerrit-Owner: Yahan Lu (LuYahan) <ya...@iscas.ac.cn>
    Gerrit-Reviewer: Ji Qiu <qi...@iscas.ac.cn>
    Gerrit-Reviewer: Yahan Lu (LuYahan) <ya...@iscas.ac.cn>
    Gerrit-Attention: Yahan Lu (LuYahan) <ya...@iscas.ac.cn>
    Gerrit-Comment-Date: Thu, 12 Mar 2026 06:30:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Yahan Lu (LuYahan) (Gerrit)

    unread,
    Mar 12, 2026, 3:30:45 AMMar 12
    to Ji Qiu, V8 LUCI CQ, v8-re...@googlegroups.com, v8-risc...@chromium.org

    Yahan Lu (LuYahan) voted

    Auto-Submit+1
    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I7e8b4c78536f7b1c070302ce04e9ce67d401d42c
    Gerrit-Change-Number: 7660033
    Gerrit-PatchSet: 3
    Gerrit-Owner: Yahan Lu (LuYahan) <ya...@iscas.ac.cn>
    Gerrit-Reviewer: Ji Qiu <qi...@iscas.ac.cn>
    Gerrit-Reviewer: Yahan Lu (LuYahan) <ya...@iscas.ac.cn>
    Gerrit-Comment-Date: Thu, 12 Mar 2026 07:30:39 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    V8 LUCI CQ (Gerrit)

    unread,
    Mar 12, 2026, 5:49:52 AMMar 12
    to Yahan Lu (LuYahan), Ji Qiu, v8-re...@googlegroups.com, v8-risc...@chromium.org

    V8 LUCI CQ submitted the change

    Change information

    Commit message:
    [riscv][wasm] Fix walking WasmLiftoffSetupFrame

    Port commit dec5f6bdbe683eb74f7908310ac9a742d057181a
    Bug:490980546
    Change-Id: I7e8b4c78536f7b1c070302ce04e9ce67d401d42c
    Auto-Submit: Yahan Lu (LuYahan) <ya...@iscas.ac.cn>
    Reviewed-by: Ji Qiu <qi...@iscas.ac.cn>
    Commit-Queue: Yahan Lu (LuYahan) <ya...@iscas.ac.cn>
    Commit-Queue: Ji Qiu <qi...@iscas.ac.cn>
    Cr-Commit-Position: refs/heads/main@{#105750}
    Files:
    • M src/execution/riscv/frame-constants-riscv.h
    Change size: XS
    Delta: 1 file changed, 3 insertions(+), 0 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Ji Qiu
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I7e8b4c78536f7b1c070302ce04e9ce67d401d42c
    Gerrit-Change-Number: 7660033
    Gerrit-PatchSet: 4
    Gerrit-Owner: Yahan Lu (LuYahan) <ya...@iscas.ac.cn>
    Gerrit-Reviewer: Ji Qiu <qi...@iscas.ac.cn>
    open
    diffy
    satisfied_requirement

    Liu Yu (Gerrit)

    unread,
    Mar 12, 2026, 11:08:16 PMMar 12
    to Zhao Jiazhong, v8-loonga...@chromium.org, v8-mip...@googlegroups.com, v8-re...@googlegroups.com
    Attention needed from Zhao Jiazhong

    Liu Yu voted Auto-Submit+1

    Auto-Submit+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Zhao Jiazhong
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I82d2df66bb363bda8f77be8cd50be5f0b8718ff2
    Gerrit-Change-Number: 7664978
    Gerrit-PatchSet: 1
    Gerrit-Owner: Liu Yu <li...@loongson.cn>
    Gerrit-Reviewer: Liu Yu <li...@loongson.cn>
    Gerrit-Reviewer: Zhao Jiazhong <zhaojia...@loongson.cn>
    Gerrit-Attention: Zhao Jiazhong <zhaojia...@loongson.cn>
    Gerrit-Comment-Date: Fri, 13 Mar 2026 03:08:09 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Zhao Jiazhong (Gerrit)

    unread,
    Mar 12, 2026, 11:24:40 PMMar 12
    to Liu Yu, v8-loonga...@chromium.org, v8-mip...@googlegroups.com, v8-re...@googlegroups.com
    Attention needed from Liu Yu

    Zhao Jiazhong voted and added 1 comment

    Votes added by Zhao Jiazhong

    Code-Review+1
    Commit-Queue+2

    1 comment

    Patchset-level comments
    File-level comment, Patchset 1 (Latest):
    Zhao Jiazhong . resolved

    LGTM

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Liu Yu
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I82d2df66bb363bda8f77be8cd50be5f0b8718ff2
    Gerrit-Change-Number: 7664978
    Gerrit-PatchSet: 1
    Gerrit-Owner: Liu Yu <li...@loongson.cn>
    Gerrit-Reviewer: Liu Yu <li...@loongson.cn>
    Gerrit-Reviewer: Zhao Jiazhong <zhaojia...@loongson.cn>
    Gerrit-Attention: Liu Yu <li...@loongson.cn>
    Gerrit-Comment-Date: Fri, 13 Mar 2026 03:24:36 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    V8 LUCI CQ (Gerrit)

    unread,
    Mar 13, 2026, 12:01:36 AMMar 13
    to Liu Yu, Zhao Jiazhong, v8-loonga...@chromium.org, v8-mip...@googlegroups.com, v8-re...@googlegroups.com

    V8 LUCI CQ submitted the change

    Change information

    Commit message:
    [loong64][mips64][wasm] Fix walking WasmLiftoffSetupFrame

    Port commit dec5f6bdbe683eb74f7908310ac9a742d057181a
    Port commit 42ae3ed711b2a9a4a78f33415dbdf1f1246dc3f8
    Bug: 490980546
    Change-Id: I82d2df66bb363bda8f77be8cd50be5f0b8718ff2
    Auto-Submit: Liu Yu <li...@loongson.cn>
    Reviewed-by: Zhao Jiazhong <zhaojia...@loongson.cn>
    Commit-Queue: Zhao Jiazhong <zhaojia...@loongson.cn>
    Cr-Commit-Position: refs/heads/main@{#105778}
    Files:
    • M src/builtins/mips64/builtins-mips64.cc
    • M src/execution/loong64/frame-constants-loong64.h
    • M src/execution/mips64/frame-constants-mips64.h
    Change size: M
    Delta: 3 files changed, 52 insertions(+), 2 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Zhao Jiazhong
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I82d2df66bb363bda8f77be8cd50be5f0b8718ff2
    Gerrit-Change-Number: 7664978
    Gerrit-PatchSet: 2
    Gerrit-Owner: Liu Yu <li...@loongson.cn>
    Gerrit-Reviewer: Liu Yu <li...@loongson.cn>
    Gerrit-Reviewer: Zhao Jiazhong <zhaojia...@loongson.cn>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages