[assembler] Fix code comments without source position [v8/v8 : main]

0 views
Skip to first unread message

Clemens Backes (Gerrit)

unread,
Dec 16, 2025, 10:30:02 AM (12 days ago) Dec 16
to V8 LUCI CQ, Leszek Swirski, cbruni...@chromium.org, dmercadi...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Leszek Swirski

Clemens Backes added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Clemens Backes . resolved

PTAL; found that when reading generated code and seeing lots of " - " suffixes.

Open in Gerrit

Related details

Attention is currently required from:
  • Leszek Swirski
Submit Requirements:
  • requirement is not 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: I87286600eaa26dbec57919ea83ecefd05368b0b9
Gerrit-Change-Number: 7264669
Gerrit-PatchSet: 1
Gerrit-Owner: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-Attention: Leszek Swirski <les...@chromium.org>
Gerrit-Comment-Date: Tue, 16 Dec 2025 15:29:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Leszek Swirski (Gerrit)

unread,
Dec 16, 2025, 10:38:43 AM (12 days ago) Dec 16
to Clemens Backes, V8 LUCI CQ, cbruni...@chromium.org, dmercadi...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Clemens Backes

Leszek Swirski voted and added 1 comment

Votes added by Leszek Swirski

Code-Review+1

1 comment

Patchset-level comments
Leszek Swirski . resolved

thanks

Open in Gerrit

Related details

Attention is currently required from:
  • Clemens Backes
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: I87286600eaa26dbec57919ea83ecefd05368b0b9
Gerrit-Change-Number: 7264669
Gerrit-PatchSet: 1
Gerrit-Owner: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-Attention: Clemens Backes <clem...@chromium.org>
Gerrit-Comment-Date: Tue, 16 Dec 2025 15:38:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Clemens Backes (Gerrit)

unread,
Dec 16, 2025, 10:48:37 AM (12 days ago) Dec 16
to Leszek Swirski, V8 LUCI CQ, cbruni...@chromium.org, dmercadi...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

Clemens Backes voted Commit-Queue+2

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: I87286600eaa26dbec57919ea83ecefd05368b0b9
Gerrit-Change-Number: 7264669
Gerrit-PatchSet: 1
Gerrit-Owner: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-Comment-Date: Tue, 16 Dec 2025 15:48:33 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

V8 LUCI CQ (Gerrit)

unread,
Dec 16, 2025, 11:14:41 AM (12 days ago) Dec 16
to Clemens Backes, Leszek Swirski, cbruni...@chromium.org, dmercadi...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

V8 LUCI CQ submitted the change

Change information

Commit message:
[assembler] Fix code comments without source position

The `FileName()` of an empty (default initialized) `SourceLocation` is
the empty string, but not nullptr.
To check if a filename is set, we would need to check if the first
character is '\0', or we check the line number instead, which is what
`SourceLocation::ToString` already did internally.

For convenience (to make it easier to use the right check the next
time), this introduces an `operator bool` on `v8::SourceLocation` to
check if the source location is initialized.

R=les...@chromium.org
Change-Id: I87286600eaa26dbec57919ea83ecefd05368b0b9
Reviewed-by: Leszek Swirski <les...@chromium.org>
Commit-Queue: Clemens Backes <clem...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#104351}
Files:
  • M include/v8-source-location.h
  • M src/codegen/assembler.h
  • M src/codegen/code-stub-assembler.cc
  • M src/compiler/code-assembler.h
  • M src/compiler/turboshaft/assembler.h
  • M test/unittests/heap/cppgc/source-location-unittest.cc
Change size: S
Delta: 6 files changed, 22 insertions(+), 18 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Leszek Swirski
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: I87286600eaa26dbec57919ea83ecefd05368b0b9
Gerrit-Change-Number: 7264669
Gerrit-PatchSet: 2
Gerrit-Owner: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
open
diffy
satisfied_requirement

Lei Zhang (Gerrit)

unread,
Dec 18, 2025, 2:46:30 PM (10 days ago) Dec 18
to V8 LUCI CQ, Clemens Backes, Lei Zhang, Leszek Swirski, cbruni...@chromium.org, dmercadi...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Clemens Backes

Lei Zhang added 1 comment

File include/v8-source-location.h
Line 76, Patchset 2 (Latest): return (std::ostringstream{} << loc_.function_name() << '@'
Lei Zhang . unresolved

Is it important to using ostringstream here? This CL transitively adds <sstream> to 15% of translation units when building the Linux chrome binary. Too bad there's no .cc file to stash the ToString() impl.

Open in Gerrit

Related details

Attention is currently required from:
  • Clemens Backes
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: I87286600eaa26dbec57919ea83ecefd05368b0b9
Gerrit-Change-Number: 7264669
Gerrit-PatchSet: 2
Gerrit-Owner: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-CC: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Clemens Backes <clem...@chromium.org>
Gerrit-Comment-Date: Thu, 18 Dec 2025 19:46:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
open
diffy

Leszek Swirski (Gerrit)

unread,
Dec 19, 2025, 4:30:58 AM (10 days ago) Dec 19
to V8 LUCI CQ, Clemens Backes, Lei Zhang, cbruni...@chromium.org, dmercadi...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Clemens Backes

Leszek Swirski added 1 comment

File include/v8-source-location.h
Line 76, Patchset 2 (Latest): return (std::ostringstream{} << loc_.function_name() << '@'
Lei Zhang . unresolved

Is it important to using ostringstream here? This CL transitively adds <sstream> to 15% of translation units when building the Linux chrome binary. Too bad there's no .cc file to stash the ToString() impl.

Leszek Swirski

ToString could be moved to api.cc

Open in Gerrit

Related details

Attention is currently required from:
  • Clemens Backes
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: I87286600eaa26dbec57919ea83ecefd05368b0b9
Gerrit-Change-Number: 7264669
Gerrit-PatchSet: 2
Gerrit-Owner: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-CC: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Clemens Backes <clem...@chromium.org>
Gerrit-Comment-Date: Fri, 19 Dec 2025 09:30:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Lei Zhang <the...@chromium.org>
satisfied_requirement
open
diffy

Clemens Backes (Gerrit)

unread,
Dec 19, 2025, 4:34:30 AM (10 days ago) Dec 19
to V8 LUCI CQ, Lei Zhang, Leszek Swirski, cbruni...@chromium.org, dmercadi...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

Clemens Backes added 1 comment

File include/v8-source-location.h
Line 76, Patchset 2 (Latest): return (std::ostringstream{} << loc_.function_name() << '@'
Lei Zhang . resolved

Is it important to using ostringstream here? This CL transitively adds <sstream> to 15% of translation units when building the Linux chrome binary. Too bad there's no .cc file to stash the ToString() impl.

Leszek Swirski

ToString could be moved to api.cc

Clemens Backes

Ack, I just uploaded the CL: https://crrev.com/c/7277346

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: I87286600eaa26dbec57919ea83ecefd05368b0b9
Gerrit-Change-Number: 7264669
Gerrit-PatchSet: 2
Gerrit-Owner: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-CC: Lei Zhang <the...@chromium.org>
Gerrit-Comment-Date: Fri, 19 Dec 2025 09:34:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Lei Zhang <the...@chromium.org>
Comment-In-Reply-To: Leszek Swirski <les...@chromium.org>
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages