[debug] Only pass SourceLocation in debug in TurboShaft [v8/v8 : main]

0 views
Skip to first unread message

Leszek Swirski (Gerrit)

unread,
Aug 27, 2025, 7:03:24 AM (13 days ago) Aug 27
to Michael Lippautz, V8 LUCI CQ, Hannes Payer, cbruni...@chromium.org, dmercadi...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Michael Lippautz

Leszek Swirski voted and added 1 comment

Votes added by Leszek Swirski

Auto-Submit+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Leszek Swirski . resolved

PTAL

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Lippautz
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: Ia6b592f094dad0987b8a886bf16a7d3fe8611eb1
Gerrit-Change-Number: 6888815
Gerrit-PatchSet: 1
Gerrit-Owner: Leszek Swirski <les...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
Gerrit-Comment-Date: Wed, 27 Aug 2025 11:03:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Lippautz (Gerrit)

unread,
Aug 27, 2025, 7:10:32 AM (13 days ago) Aug 27
to Leszek Swirski, V8 LUCI CQ, Hannes Payer, cbruni...@chromium.org, dmercadi...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Leszek Swirski

Michael Lippautz added 1 comment

File include/cppgc/cross-thread-persistent.h
Line 106, Patchset 1 (Parent): const SourceLocation& loc = SourceLocation::Current())
Michael Lippautz . unresolved

Technically anything that's not in `internal` namespaces is public API and may be used in ways that's breaking. I would not expect it to be a problem except for any virtual functions where it won't compile?

Open in Gerrit

Related details

Attention is currently required from:
  • Leszek Swirski
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ia6b592f094dad0987b8a886bf16a7d3fe8611eb1
    Gerrit-Change-Number: 6888815
    Gerrit-PatchSet: 1
    Gerrit-Owner: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Leszek Swirski <les...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 Aug 2025 11:10:27 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Leszek Swirski (Gerrit)

    unread,
    Aug 27, 2025, 7:19:09 AM (13 days ago) Aug 27
    to Michael Lippautz, V8 LUCI CQ, Hannes Payer, cbruni...@chromium.org, dmercadi...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Michael Lippautz

    Leszek Swirski added 1 comment

    File include/cppgc/cross-thread-persistent.h
    Line 106, Patchset 1 (Parent): const SourceLocation& loc = SourceLocation::Current())
    Michael Lippautz . unresolved

    Technically anything that's not in `internal` namespaces is public API and may be used in ways that's breaking. I would not expect it to be a problem except for any virtual functions where it won't compile?

    Leszek Swirski

    Yeah I think a change from const ref param to value param should only be visible to API users via virtual functions

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Michael Lippautz
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ia6b592f094dad0987b8a886bf16a7d3fe8611eb1
    Gerrit-Change-Number: 6888815
    Gerrit-PatchSet: 1
    Gerrit-Owner: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 Aug 2025 11:19:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Michael Lippautz <mlip...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Michael Lippautz (Gerrit)

    unread,
    Aug 27, 2025, 7:22:53 AM (13 days ago) Aug 27
    to Leszek Swirski, V8 LUCI CQ, Hannes Payer, cbruni...@chromium.org, dmercadi...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Leszek Swirski

    Michael Lippautz voted and added 1 comment

    Votes added by Michael Lippautz

    Code-Review+1

    1 comment

    Patchset-level comments
    Michael Lippautz . resolved

    lgtm good luck with the bots

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Leszek Swirski
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ia6b592f094dad0987b8a886bf16a7d3fe8611eb1
    Gerrit-Change-Number: 6888815
    Gerrit-PatchSet: 1
    Gerrit-Owner: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Leszek Swirski <les...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 Aug 2025 11:22:49 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Leszek Swirski (Gerrit)

    unread,
    Aug 27, 2025, 7:59:50 AM (13 days ago) Aug 27
    to Michael Lippautz, V8 LUCI CQ, Hannes Payer, cbruni...@chromium.org, dmercadi...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Michael Lippautz

    Leszek Swirski voted and added 1 comment

    Votes added by Leszek Swirski

    Auto-Submit+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 1:
    Leszek Swirski . resolved

    ok there was a virtual function in v8-platform, reverted that one. Needs another stamp

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Michael Lippautz
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ia6b592f094dad0987b8a886bf16a7d3fe8611eb1
    Gerrit-Change-Number: 6888815
    Gerrit-PatchSet: 2
    Gerrit-Owner: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 Aug 2025 11:59:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Michael Lippautz (Gerrit)

    unread,
    Aug 27, 2025, 8:08:10 AM (13 days ago) Aug 27
    to Leszek Swirski, V8 LUCI CQ, Hannes Payer, cbruni...@chromium.org, dmercadi...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Leszek Swirski

    Michael Lippautz voted

    Code-Review+1
    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Leszek Swirski
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ia6b592f094dad0987b8a886bf16a7d3fe8611eb1
    Gerrit-Change-Number: 6888815
    Gerrit-PatchSet: 2
    Gerrit-Owner: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Leszek Swirski <les...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 Aug 2025 12:08:05 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Leszek Swirski (Gerrit)

    unread,
    Aug 27, 2025, 9:07:35 AM (13 days ago) Aug 27
    to Michael Lippautz, V8 LUCI CQ, Hannes Payer, cbruni...@chromium.org, dmercadi...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Michael Lippautz

    Leszek Swirski voted and added 2 comments

    Votes added by Leszek Swirski

    Auto-Submit+1

    2 comments

    Patchset-level comments
    File-level comment, Patchset 3 (Latest):
    Leszek Swirski . resolved

    just one more stamp please

    File include/cppgc/cross-thread-persistent.h
    Line 106, Patchset 1 (Parent): const SourceLocation& loc = SourceLocation::Current())
    Michael Lippautz . resolved

    Technically anything that's not in `internal` namespaces is public API and may be used in ways that's breaking. I would not expect it to be a problem except for any virtual functions where it won't compile?

    Leszek Swirski

    Yeah I think a change from const ref param to value param should only be visible to API users via virtual functions

    Leszek Swirski

    As you predicted, it was an issue for virtual functions. Fixed.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Michael Lippautz
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    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: Ia6b592f094dad0987b8a886bf16a7d3fe8611eb1
    Gerrit-Change-Number: 6888815
    Gerrit-PatchSet: 3
    Gerrit-Owner: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 Aug 2025 13:07:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Leszek Swirski <les...@chromium.org>
    Comment-In-Reply-To: Michael Lippautz <mlip...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Michael Lippautz (Gerrit)

    unread,
    Aug 27, 2025, 9:08:33 AM (13 days ago) Aug 27
    to Leszek Swirski, V8 LUCI CQ, Hannes Payer, cbruni...@chromium.org, dmercadi...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Leszek Swirski

    Michael Lippautz voted

    Code-Review+1
    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Leszek Swirski
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ia6b592f094dad0987b8a886bf16a7d3fe8611eb1
    Gerrit-Change-Number: 6888815
    Gerrit-PatchSet: 3
    Gerrit-Owner: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Leszek Swirski <les...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 Aug 2025 13:08:25 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    V8 LUCI CQ (Gerrit)

    unread,
    Aug 27, 2025, 9:56:15 AM (13 days ago) Aug 27
    to Leszek Swirski, Michael Lippautz, Hannes Payer, cbruni...@chromium.org, dmercadi...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

    V8 LUCI CQ submitted the change

    Change information

    Commit message:
    [debug] Only pass SourceLocation in debug in TurboShaft

    SourceLocation is almost only used for debug messages in TurboShaft, so
    pass it only in debug mode. Additionally, std::source_location (that it
    wraps) is a single pointer, so we can efficiently pass it by value
    rather than const ref.

    This reduces release build d8 by ~170kb, of which ~4kb is the by-value
    passing.
    Change-Id: Ia6b592f094dad0987b8a886bf16a7d3fe8611eb1
    Auto-Submit: Leszek Swirski <les...@chromium.org>
    Reviewed-by: Michael Lippautz <mlip...@chromium.org>
    Commit-Queue: Leszek Swirski <les...@chromium.org>
    Commit-Queue: Michael Lippautz <mlip...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#102072}
    Files:
    • M include/cppgc/cross-thread-persistent.h
    • M include/cppgc/internal/logging.h
    • M include/cppgc/internal/pointer-policies.h
    • M include/cppgc/persistent.h
    • M include/cppgc/platform.h
    • M include/cppgc/visitor.h
    • M include/v8-platform.h
    • M include/v8-source-location.h
    • M src/base/logging.h
    • M src/codegen/assembler.cc
    • M src/codegen/assembler.h
    • M src/codegen/code-stub-assembler.cc
    • M src/codegen/code-stub-assembler.h
    • M src/codegen/macro-assembler.h
    • M src/compiler/code-assembler.h
    • M src/compiler/turboshaft/assembler.h
    • M src/heap/cppgc-js/cpp-heap.cc
    • M src/heap/cppgc-js/cpp-snapshot.cc
    • M src/heap/cppgc/logging.cc
    • M src/heap/cppgc/marking-visitor.cc
    • M src/heap/cppgc/marking-visitor.h
    • M src/heap/cppgc/platform.cc
    • M src/heap/cppgc/platform.h
    • M src/objects/casting.h
    • M test/unittests/heap/cppgc/persistent-family-unittest.cc
    • M test/unittests/heap/cppgc/platform-unittest.cc
    Change size: L
    Delta: 26 files changed, 147 insertions(+), 160 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Michael Lippautz
    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: Ia6b592f094dad0987b8a886bf16a7d3fe8611eb1
    Gerrit-Change-Number: 6888815
    Gerrit-PatchSet: 4
    Gerrit-Owner: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages