[test][wasm] Deprecate vector<v8::Local> [v8/v8 : main]

12 views
Skip to first unread message

Nikolaos Papaspyrou (Gerrit)

unread,
Oct 31, 2023, 1:13:07 PM10/31/23
to Matthias Liedtke, Michael Lippautz, almuthan...@chromium.org, v8-re...@googlegroups.com

Attention is currently required from: Matthias Liedtke, Michael Lippautz.

Nikolaos Papaspyrou would like Matthias Liedtke and Michael Lippautz to review this change.

View Change

[test][wasm] Deprecate vector<v8::Local>

According to V8's public API documentation, local handles (i.e.,
objects of type v8::Local<T>) "should never be allocated on the heap".
This disallows heap-allocated data structures containing instances of
v8::Local, like std::vector<v8::Local<v8::String>>.

This CL refactors a few wasm tests that use such vectors, using instead
stack-allocated std::arrays and v8::MemorySpan objects.

Bug: chromium:1454114
Change-Id: I04b467c447e2a61369678fa05606d75f971289cd
---
M test/cctest/test-js-to-wasm.cc
1 file changed, 78 insertions(+), 58 deletions(-)


To view, visit change 4994333. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I04b467c447e2a61369678fa05606d75f971289cd
Gerrit-Change-Number: 4994333
Gerrit-PatchSet: 1
Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
Gerrit-Reviewer: Matthias Liedtke <mlie...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
Gerrit-Attention: Matthias Liedtke <mlie...@chromium.org>
Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>

Nikolaos Papaspyrou (Gerrit)

unread,
Oct 31, 2023, 1:13:10 PM10/31/23
to almuthan...@chromium.org, v8-re...@googlegroups.com, Matthias Liedtke, Michael Lippautz, V8 LUCI CQ

Attention is currently required from: Matthias Liedtke, Michael Lippautz.

Patch set 1:Commit-Queue +1

View Change

    To view, visit change 4994333. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I04b467c447e2a61369678fa05606d75f971289cd
    Gerrit-Change-Number: 4994333
    Gerrit-PatchSet: 1
    Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
    Gerrit-Reviewer: Matthias Liedtke <mlie...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
    Gerrit-Attention: Matthias Liedtke <mlie...@chromium.org>
    Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Comment-Date: Tue, 31 Oct 2023 17:13:03 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes

    Matthias Liedtke (Gerrit)

    unread,
    Oct 31, 2023, 1:20:24 PM10/31/23
    to Nikolaos Papaspyrou, almuthan...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, V8 LUCI CQ

    Attention is currently required from: Michael Lippautz, Nikolaos Papaspyrou.

    Patch set 1:Code-Review +1

    View Change

    1 comment:

    To view, visit change 4994333. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I04b467c447e2a61369678fa05606d75f971289cd
    Gerrit-Change-Number: 4994333
    Gerrit-PatchSet: 1
    Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
    Gerrit-Reviewer: Matthias Liedtke <mlie...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
    Gerrit-Attention: Nikolaos Papaspyrou <niko...@chromium.org>
    Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Comment-Date: Tue, 31 Oct 2023 17:20:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes

    Nikolaos Papaspyrou (Gerrit)

    unread,
    Nov 2, 2023, 9:06:26 AM11/2/23
    to Michael Lippautz, Omer Katz, almuthan...@chromium.org, devtools-...@chromium.org, v8-re...@googlegroups.com

    Attention is currently required from: Michael Lippautz, Omer Katz.

    Nikolaos Papaspyrou would like Michael Lippautz and Omer Katz to review this change.

    View Change

    [debug][inspector] Deprecate vector<v8::Local>


    According to V8's public API documentation, local handles (i.e.,
    objects of type v8::Local<T>) "should never be allocated on the heap".
    This disallows heap-allocated data structures containing instances of
    v8::Local, like std::vector<v8::Local<v8::String>>.

    This CL continues the deprecation of such data structures from the V8
    code base, using v8::LocalVector instead.

    Bug: chromium:1454114
    Change-Id: I90e76c85abad6be2288666bfafade1bd19352cb7
    ---
    M src/debug/debug-interface.cc
    M src/debug/debug-interface.h
    M src/inspector/v8-debugger.cc
    M src/inspector/v8-runtime-agent-impl.cc
    M src/inspector/value-mirror.cc
    M test/cctest/test-debug.cc
    6 files changed, 18 insertions(+), 18 deletions(-)


    To view, visit change 4995788. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: newchange
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I90e76c85abad6be2288666bfafade1bd19352cb7
    Gerrit-Change-Number: 4995788
    Gerrit-PatchSet: 1
    Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
    Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
    Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Attention: Omer Katz <omer...@chromium.org>

    Nikolaos Papaspyrou (Gerrit)

    unread,
    Nov 2, 2023, 9:06:28 AM11/2/23
    to almuthan...@chromium.org, devtools-...@chromium.org, v8-re...@googlegroups.com, Omer Katz, Michael Lippautz, V8 LUCI CQ

    Attention is currently required from: Michael Lippautz, Omer Katz.

      To view, visit change 4995788. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: v8/v8
      Gerrit-Branch: main
      Gerrit-Change-Id: I90e76c85abad6be2288666bfafade1bd19352cb7
      Gerrit-Change-Number: 4995788
      Gerrit-PatchSet: 1
      Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
      Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Attention: Omer Katz <omer...@chromium.org>
      Gerrit-Comment-Date: Thu, 02 Nov 2023 13:06:22 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No

      Omer Katz (Gerrit)

      unread,
      Nov 2, 2023, 9:39:38 AM11/2/23
      to Nikolaos Papaspyrou, almuthan...@chromium.org, devtools-...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, V8 LUCI CQ

      Attention is currently required from: Michael Lippautz, Nikolaos Papaspyrou.

      Patch set 1:Code-Review +1

      View Change

      1 comment:

      To view, visit change 4995788. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: v8/v8
      Gerrit-Branch: main
      Gerrit-Change-Id: I90e76c85abad6be2288666bfafade1bd19352cb7
      Gerrit-Change-Number: 4995788
      Gerrit-PatchSet: 1
      Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
      Gerrit-Attention: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Comment-Date: Thu, 02 Nov 2023 13:39:30 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes

      Nikolaos Papaspyrou (Gerrit)

      unread,
      Nov 2, 2023, 11:33:15 AM11/2/23
      to Michael Lippautz, Omer Katz, devtools-...@chromium.org, v8-re...@googlegroups.com

      Attention is currently required from: Michael Lippautz, Omer Katz.

      Nikolaos Papaspyrou would like Michael Lippautz and Omer Katz to review this change.

      View Change

      [inspector] Deprecate vector<v8::Local>


      According to V8's public API documentation, local handles (i.e.,
      objects of type v8::Local<T>) "should never be allocated on the heap".
      This disallows heap-allocated data structures containing instances of
      v8::Local, like std::vector<v8::Local<v8::String>>.

      This CL continues the deprecation of such data structures from the V8
      code base, using v8::LocalVector instead.

      Bug: chromium:1454114
      Change-Id: Ia91d45e4e298a670f84ba30e7582267b3e29443e
      ---
      M src/inspector/custom-preview.cc
      M src/inspector/v8-console-message.cc
      M src/inspector/v8-console-message.h
      M src/inspector/v8-console.cc
      4 files changed, 34 insertions(+), 29 deletions(-)


      To view, visit change 5000625. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: newchange
      Gerrit-Project: v8/v8
      Gerrit-Branch: main
      Gerrit-Change-Id: Ia91d45e4e298a670f84ba30e7582267b3e29443e
      Gerrit-Change-Number: 5000625
      Gerrit-PatchSet: 1
      Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Reviewer: Omer Katz <omer...@chromium.org>

      Nikolaos Papaspyrou (Gerrit)

      unread,
      Nov 2, 2023, 11:33:24 AM11/2/23
      to devtools-...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, Omer Katz, V8 LUCI CQ

      Attention is currently required from: Michael Lippautz, Omer Katz.

      View Change

      1 comment:

      • File src/inspector/v8-console-message.h:

        • Patch Set #1, Line 54: MemorySpan

          Why can't this be a `LocalVector`? […]

          As I see it, a span is a view of an array-like container. It's more general than a vector and should be preferred, if we need access to the elements but not access to the container itself.

          In one of the use cases (line 120 of v8-console.cc) an `std::array` is passed; there's no need to create a `LocalVector` there.

          If it's the conversion that you're concerned with, i.e. having `{v.begin(), v.end()}` instead of just `v` when passing a `LocalVector` as a `MemorySpan`, that's a fair argument. I think it would be reasonable to have implicit conversions from vectors to spans, just as `std::span` has them.

          The pdfium folks also mentioned this (among other things) and I will raise it as a question in the V8 chat. IIRC, Michael wanted the interface as minimal as possible, that's why it's not there already.

      To view, visit change 5000625. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: v8/v8
      Gerrit-Branch: main
      Gerrit-Change-Id: Ia91d45e4e298a670f84ba30e7582267b3e29443e
      Gerrit-Change-Number: 5000625
      Gerrit-PatchSet: 1
      Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
      Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Attention: Omer Katz <omer...@chromium.org>
      Gerrit-Comment-Date: Thu, 02 Nov 2023 15:32:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Omer Katz <omer...@chromium.org>

      Omer Katz (Gerrit)

      unread,
      Nov 3, 2023, 6:01:46 AM11/3/23
      to Nikolaos Papaspyrou, devtools-...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, V8 LUCI CQ

      Attention is currently required from: Michael Lippautz, Nikolaos Papaspyrou.

      View Change

      3 comments:

      • File src/inspector/v8-console-message.h:

        • As I see it, a span is a view of an array-like container. […]

          Ok. I suppose my real concern was to make sure the MemorySpan doesn't change while we're using it here. The LocalVector is untouched so it's not reallocating backing stores (meaning we know it's still using the same MemorySpan). Also, the MemorySpan itself will keep the backing store from moving during a GC once CSS is enabled since it's on stack, right?
          In that case, I assume this is safe.

      • File src/inspector/v8-console-message.cc:

      To view, visit change 5000625. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: v8/v8
      Gerrit-Branch: main
      Gerrit-Change-Id: Ia91d45e4e298a670f84ba30e7582267b3e29443e
      Gerrit-Change-Number: 5000625
      Gerrit-PatchSet: 1
      Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
      Gerrit-Attention: Nikolaos Papaspyrou <niko...@chromium.org>
      Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Comment-Date: Fri, 03 Nov 2023 10:01:40 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Nikolaos Papaspyrou <niko...@chromium.org>
      Comment-In-Reply-To: Omer Katz <omer...@chromium.org>

      Michael Lippautz (Gerrit)

      unread,
      Nov 3, 2023, 12:08:28 PM11/3/23
      to Nikolaos Papaspyrou, almuthan...@chromium.org, v8-re...@googlegroups.com, Matthias Liedtke, V8 LUCI CQ

      Attention is currently required from: Nikolaos Papaspyrou.

      Patch set 1:Code-Review +1

      View Change

        To view, visit change 4994333. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: v8/v8
        Gerrit-Branch: main
        Gerrit-Change-Id: I04b467c447e2a61369678fa05606d75f971289cd
        Gerrit-Change-Number: 4994333
        Gerrit-PatchSet: 1
        Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
        Gerrit-Reviewer: Matthias Liedtke <mlie...@chromium.org>
        Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
        Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
        Gerrit-Attention: Nikolaos Papaspyrou <niko...@chromium.org>
        Gerrit-Comment-Date: Fri, 03 Nov 2023 16:08:21 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes

        Nikolaos Papaspyrou (Gerrit)

        unread,
        Nov 3, 2023, 3:15:15 PM11/3/23
        to almuthan...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, Matthias Liedtke, V8 LUCI CQ

        Patch set 1:Commit-Queue +2

        View Change

          To view, visit change 4994333. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-MessageType: comment
          Gerrit-Project: v8/v8
          Gerrit-Branch: main
          Gerrit-Change-Id: I04b467c447e2a61369678fa05606d75f971289cd
          Gerrit-Change-Number: 4994333
          Gerrit-PatchSet: 1
          Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
          Gerrit-Reviewer: Matthias Liedtke <mlie...@chromium.org>
          Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
          Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
          Gerrit-Comment-Date: Fri, 03 Nov 2023 19:15:09 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes

          Nikolaos Papaspyrou (Gerrit)

          unread,
          Nov 3, 2023, 3:47:19 PM11/3/23
          to devtools-...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, Omer Katz, V8 LUCI CQ

          Attention is currently required from: Michael Lippautz, Omer Katz.

          View Change

          3 comments:

          • File src/inspector/v8-console-message.h:

            • I can add `const` if you insist, but I think there's no need. Changing a span is not possible. There's no method of `v8::MemorySpan` that cannot be applied to a `const` object. Here we're also not changing the elements, which is shown by the `const` in the span's type parameter.

            • Ok. […]

              The span contains just a pointer to the backing store and the length.
              It cannot change the vector in any way and there are no methods changing the span itself (i.e., the pointer or the length).

              The backing store of a `LocalVector` (in DL builds) is allocated with `StrongRootAllocatorBase::allocate_impl` (using `base::Malloc`) and deallocated with `StrongRootAllocatorBase::deallocate_impl` (using `base::Free`), when the lifetime of the `LocalVector` ends. There's nothing in a `MemorySpan` that keeps the `LocalVector` or its backing store alive, just as it happens with `std::span` in the STL. The backing store cannot be moved during a GC because it's not GC-managed anyway.

              I believe that all this is safe under CSS (or otherwise), under the constraints that:
              1. spans must not survive the actual vectors, and
              2. calling methods that may relocate or shrink a vector's backing store (e.g., `push_back`) invalidates all existing spans for this vector.

              These requirements are the same as in the STL for `std::span`.

          • File src/inspector/v8-console-message.cc:

            • Same as above.

          To view, visit change 5000625. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-MessageType: comment
          Gerrit-Project: v8/v8
          Gerrit-Branch: main
          Gerrit-Change-Id: Ia91d45e4e298a670f84ba30e7582267b3e29443e
          Gerrit-Change-Number: 5000625
          Gerrit-PatchSet: 1
          Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
          Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
          Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
          Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
          Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
          Gerrit-Attention: Omer Katz <omer...@chromium.org>
          Gerrit-Comment-Date: Fri, 03 Nov 2023 19:47:13 +0000

          V8 LUCI CQ (Gerrit)

          unread,
          Nov 3, 2023, 3:56:15 PM11/3/23
          to Nikolaos Papaspyrou, almuthan...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, Matthias Liedtke

          V8 LUCI CQ submitted this change.

          View Change

          Approvals: Michael Lippautz: Looks good to me Nikolaos Papaspyrou: Commit Matthias Liedtke: Looks good to me
          [test][wasm] Deprecate vector<v8::Local>


          According to V8's public API documentation, local handles (i.e.,
          objects of type v8::Local<T>) "should never be allocated on the heap".
          This disallows heap-allocated data structures containing instances of
          v8::Local, like std::vector<v8::Local<v8::String>>.

          This CL refactors a few wasm tests that use such vectors, using instead
          stack-allocated std::arrays and v8::MemorySpan objects.

          Bug: chromium:1454114
          Change-Id: I04b467c447e2a61369678fa05606d75f971289cd
          Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4994333
          Reviewed-by: Matthias Liedtke <mlie...@chromium.org>
          Commit-Queue: Nikolaos Papaspyrou <niko...@chromium.org>
          Reviewed-by: Michael Lippautz <mlip...@chromium.org>
          Cr-Commit-Position: refs/heads/main@{#90737}

          ---
          M test/cctest/test-js-to-wasm.cc
          1 file changed, 78 insertions(+), 58 deletions(-)

          
          

          To view, visit change 4994333. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-MessageType: merged
          Gerrit-Project: v8/v8
          Gerrit-Branch: main
          Gerrit-Change-Id: I04b467c447e2a61369678fa05606d75f971289cd
          Gerrit-Change-Number: 4994333
          Gerrit-PatchSet: 2
          Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
          Gerrit-Reviewer: Matthias Liedtke <mlie...@chromium.org>
          Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
          Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>

          Omer Katz (Gerrit)

          unread,
          Nov 6, 2023, 5:50:37 AM11/6/23
          to Nikolaos Papaspyrou, devtools-...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, V8 LUCI CQ

          Attention is currently required from: Michael Lippautz, Nikolaos Papaspyrou.

          Patch set 1:Code-Review +1

          View Change

          4 comments:

            • File src/inspector/v8-console-message.h:

              • Patch Set #1, Line 54: MemorySpan

                The span contains just a pointer to the backing store and the length. […]

                Acknowledged
                I thought the backing stores were GCed, but that was wrong.

              • I can add `const` if you insist, but I think there's no need. Changing a span is not possible. […]

                Acknowledged

            • File src/inspector/v8-console-message.cc:

              • Same as above.

                Acknowledged

            To view, visit change 5000625. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-MessageType: comment
            Gerrit-Project: v8/v8
            Gerrit-Branch: main
            Gerrit-Change-Id: Ia91d45e4e298a670f84ba30e7582267b3e29443e
            Gerrit-Change-Number: 5000625
            Gerrit-PatchSet: 1
            Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
            Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
            Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
            Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
            Gerrit-Attention: Nikolaos Papaspyrou <niko...@chromium.org>
            Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
            Gerrit-Comment-Date: Mon, 06 Nov 2023 10:50:32 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes

            Michael Lippautz (Gerrit)

            unread,
            Nov 6, 2023, 6:17:39 AM11/6/23
            to Nikolaos Papaspyrou, devtools-...@chromium.org, v8-re...@googlegroups.com, Omer Katz, V8 LUCI CQ

            Attention is currently required from: Nikolaos Papaspyrou.

            Patch set 1:Code-Review +1

            View Change

              To view, visit change 5000625. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-MessageType: comment
              Gerrit-Project: v8/v8
              Gerrit-Branch: main
              Gerrit-Change-Id: Ia91d45e4e298a670f84ba30e7582267b3e29443e
              Gerrit-Change-Number: 5000625
              Gerrit-PatchSet: 1
              Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
              Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
              Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
              Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
              Gerrit-Attention: Nikolaos Papaspyrou <niko...@chromium.org>
              Gerrit-Comment-Date: Mon, 06 Nov 2023 11:17:34 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes

              Nikolaos Papaspyrou (Gerrit)

              unread,
              Nov 6, 2023, 6:39:34 AM11/6/23
              to devtools-...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, Omer Katz, V8 LUCI CQ

              Patch set 1:Commit-Queue +2

                To view, visit change 5000625. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-MessageType: comment
                Gerrit-Project: v8/v8
                Gerrit-Branch: main
                Gerrit-Change-Id: Ia91d45e4e298a670f84ba30e7582267b3e29443e
                Gerrit-Change-Number: 5000625
                Gerrit-PatchSet: 1
                Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
                Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
                Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
                Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
                Gerrit-Comment-Date: Mon, 06 Nov 2023 11:39:29 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes

                V8 LUCI CQ (Gerrit)

                unread,
                Nov 6, 2023, 7:22:17 AM11/6/23
                to Nikolaos Papaspyrou, devtools-...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, Omer Katz

                V8 LUCI CQ submitted this change.

                View Change

                Approvals: Nikolaos Papaspyrou: Commit Michael Lippautz: Looks good to me Omer Katz: Looks good to me
                [inspector] Deprecate vector<v8::Local>


                According to V8's public API documentation, local handles (i.e.,
                objects of type v8::Local<T>) "should never be allocated on the heap".
                This disallows heap-allocated data structures containing instances of
                v8::Local, like std::vector<v8::Local<v8::String>>.

                This CL continues the deprecation of such data structures from the V8
                code base, using v8::LocalVector instead.

                Bug: chromium:1454114
                Change-Id: Ia91d45e4e298a670f84ba30e7582267b3e29443e
                Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5000625
                Reviewed-by: Omer Katz <omer...@chromium.org>
                Reviewed-by: Michael Lippautz <mlip...@chromium.org>
                Commit-Queue: Nikolaos Papaspyrou <niko...@chromium.org>
                Cr-Commit-Position: refs/heads/main@{#90755}

                ---
                M src/inspector/custom-preview.cc
                M src/inspector/v8-console-message.cc
                M src/inspector/v8-console-message.h
                M src/inspector/v8-console.cc
                4 files changed, 34 insertions(+), 29 deletions(-)


                To view, visit change 5000625. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-MessageType: merged
                Gerrit-Project: v8/v8
                Gerrit-Branch: main
                Gerrit-Change-Id: Ia91d45e4e298a670f84ba30e7582267b3e29443e
                Gerrit-Change-Number: 5000625
                Gerrit-PatchSet: 2
                Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
                Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
                Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
                Gerrit-Reviewer: Omer Katz <omer...@chromium.org>

                Michael Lippautz (Gerrit)

                unread,
                Nov 9, 2023, 4:17:30 AM11/9/23
                to Nikolaos Papaspyrou, almuthan...@chromium.org, devtools-...@chromium.org, v8-re...@googlegroups.com, Omer Katz, V8 LUCI CQ

                Attention is currently required from: Nikolaos Papaspyrou.

                Patch set 1:Code-Review +1

                View Change

                  To view, visit change 4995788. To unsubscribe, or for help writing mail filters, visit settings.

                  Gerrit-MessageType: comment
                  Gerrit-Project: v8/v8
                  Gerrit-Branch: main
                  Gerrit-Change-Id: I90e76c85abad6be2288666bfafade1bd19352cb7
                  Gerrit-Change-Number: 4995788
                  Gerrit-PatchSet: 1
                  Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
                  Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
                  Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
                  Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
                  Gerrit-Attention: Nikolaos Papaspyrou <niko...@chromium.org>
                  Gerrit-Comment-Date: Thu, 09 Nov 2023 09:17:25 +0000
                  Gerrit-HasComments: No
                  Gerrit-Has-Labels: Yes

                  Nikolaos Papaspyrou (Gerrit)

                  unread,
                  Nov 9, 2023, 4:29:03 AM11/9/23
                  to almuthan...@chromium.org, devtools-...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, Omer Katz, V8 LUCI CQ

                  Patch set 1:Commit-Queue +2

                    To view, visit change 4995788. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: v8/v8
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I90e76c85abad6be2288666bfafade1bd19352cb7
                    Gerrit-Change-Number: 4995788
                    Gerrit-PatchSet: 1
                    Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
                    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
                    Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
                    Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
                    Gerrit-Comment-Date: Thu, 09 Nov 2023 09:28:57 +0000
                    Gerrit-HasComments: No
                    Gerrit-Has-Labels: Yes

                    V8 LUCI CQ (Gerrit)

                    unread,
                    Nov 9, 2023, 5:23:42 AM11/9/23
                    to Nikolaos Papaspyrou, almuthan...@chromium.org, devtools-...@chromium.org, v8-re...@googlegroups.com, Michael Lippautz, Omer Katz

                    V8 LUCI CQ submitted this change.

                    View Change

                    Approvals: Omer Katz: Looks good to me Michael Lippautz: Looks good to me Nikolaos Papaspyrou: Commit
                    [debug][inspector] Deprecate vector<v8::Local>


                    According to V8's public API documentation, local handles (i.e.,
                    objects of type v8::Local<T>) "should never be allocated on the heap".
                    This disallows heap-allocated data structures containing instances of
                    v8::Local, like std::vector<v8::Local<v8::String>>.

                    This CL continues the deprecation of such data structures from the V8
                    code base, using v8::LocalVector instead.

                    Bug: chromium:1454114
                    Change-Id: I90e76c85abad6be2288666bfafade1bd19352cb7
                    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4995788

                    Reviewed-by: Omer Katz <omer...@chromium.org>
                    Reviewed-by: Michael Lippautz <mlip...@chromium.org>
                    Commit-Queue: Nikolaos Papaspyrou <niko...@chromium.org>
                    Cr-Commit-Position: refs/heads/main@{#90829}

                    ---
                    M src/debug/debug-interface.cc
                    M src/debug/debug-interface.h
                    M src/inspector/v8-debugger.cc
                    M src/inspector/v8-runtime-agent-impl.cc
                    M src/inspector/value-mirror.cc
                    M test/cctest/test-debug.cc
                    6 files changed, 18 insertions(+), 18 deletions(-)


                    To view, visit change 4995788. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: merged
                    Gerrit-Project: v8/v8
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I90e76c85abad6be2288666bfafade1bd19352cb7
                    Gerrit-Change-Number: 4995788
                    Gerrit-PatchSet: 2
                    Gerrit-Owner: Nikolaos Papaspyrou <niko...@chromium.org>
                    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
                    Gerrit-Reviewer: Nikolaos Papaspyrou <niko...@chromium.org>
                    Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
                    Reply all
                    Reply to author
                    Forward
                    0 new messages