[api] Allow v8::String::WriteOneByteV2() for two-byte strings [v8/v8 : main]

0 views
Skip to first unread message

Igor Sheludko (Gerrit)

unread,
Sep 26, 2025, 6:19:21 AM (yesterday) Sep 26
to Michael Lippautz, v8-re...@googlegroups.com
Attention needed from Michael Lippautz

Igor Sheludko voted and added 2 comments

Votes added by Igor Sheludko

Auto-Submit+1
Commit-Queue+1

2 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Igor Sheludko . resolved

PTAL

File src/api/api.cc
Line 5941, Patchset 1 (Parent): DCHECK(IsOneByte());
Igor Sheludko . unresolved

The underlying i::String::WriteToFlat() used for both old and new Api does support this case.

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
  • 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: I0768ce3e8c59ac1c6b88d0a291a18cd84e18e6ba
Gerrit-Change-Number: 6988628
Gerrit-PatchSet: 1
Gerrit-Owner: Igor Sheludko <ish...@chromium.org>
Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 10:19:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Lippautz (Gerrit)

unread,
Sep 26, 2025, 6:24:57 AM (yesterday) Sep 26
to Igor Sheludko, V8 LUCI CQ, v8-re...@googlegroups.com
Attention needed from Igor Sheludko

Michael Lippautz voted

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

Related details

Attention is currently required from:
  • Igor Sheludko
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: I0768ce3e8c59ac1c6b88d0a291a18cd84e18e6ba
Gerrit-Change-Number: 6988628
Gerrit-PatchSet: 1
Gerrit-Owner: Igor Sheludko <ish...@chromium.org>
Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-Attention: Igor Sheludko <ish...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 10:24:51 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Igor Sheludko (Gerrit)

unread,
Sep 26, 2025, 6:25:45 AM (yesterday) Sep 26
to Michael Lippautz, V8 LUCI CQ, v8-re...@googlegroups.com
Attention needed from Michael Lippautz

Igor Sheludko voted and added 1 comment

Votes added by Igor Sheludko

Commit-Queue+2

1 comment

File src/api/api.cc
Line 5941, Patchset 1 (Parent): DCHECK(IsOneByte());
Igor Sheludko . resolved

The underlying i::String::WriteToFlat() used for both old and new Api does support this case.

Igor Sheludko

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Lippautz
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: I0768ce3e8c59ac1c6b88d0a291a18cd84e18e6ba
    Gerrit-Change-Number: 6988628
    Gerrit-PatchSet: 1
    Gerrit-Owner: Igor Sheludko <ish...@chromium.org>
    Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Comment-Date: Fri, 26 Sep 2025 10:25:40 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Igor Sheludko <ish...@chromium.org>
    satisfied_requirement
    open
    diffy

    V8 LUCI CQ (Gerrit)

    unread,
    Sep 26, 2025, 6:55:52 AM (yesterday) Sep 26
    to Igor Sheludko, Michael Lippautz, v8-re...@googlegroups.com

    V8 LUCI CQ submitted the change

    Change information

    Commit message:
    [api] Allow v8::String::WriteOneByteV2() for two-byte strings

    ... as it was allowed by the old WriteOneByte() Api.
    This CLs add missing tests for this case.
    Bug: 373485796
    Change-Id: I0768ce3e8c59ac1c6b88d0a291a18cd84e18e6ba
    Reviewed-by: Michael Lippautz <mlip...@chromium.org>
    Auto-Submit: Igor Sheludko <ish...@chromium.org>
    Commit-Queue: Igor Sheludko <ish...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#102789}
    Files:
    • M src/api/api.cc
    • M test/cctest/test-api.cc
    Change size: S
    Delta: 2 files changed, 34 insertions(+), 2 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: I0768ce3e8c59ac1c6b88d0a291a18cd84e18e6ba
    Gerrit-Change-Number: 6988628
    Gerrit-PatchSet: 2
    Gerrit-Owner: Igor Sheludko <ish...@chromium.org>
    Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages