Files
Michael Lippautz 70d469d42b [base] Rework OwnedVector into UniqueArray
Extract v8::base::OwnedVector from src/base/vector.h into
src/base/unique-array.h as v8::base::UniqueArray to better reflect
that it is a fixed-size dynamically allocated array (analogous to
std::dynarray or Chromium's base::HeapArray) rather than a resizable
vector.

Move static factories (New, NewForOverwrite, CopiedFrom) to the top of
the public section, add as_span() alongside as_vector(), rename
OwnedCopyOf to UniqueCopyOf, and make the (std::unique_ptr<T[]>,
size_t) constructor private.

TAG=agy
CONV=d3a85e2c-5580-4e8b-863a-9838b3f3b057

Bug: 568729129
Change-Id: I3f73fe316a9118bea7bb25f6d0505187317f4355
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8532046
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#110471}
2026-10-08 09:46:50 -07:00
..