• Clemens Backes's avatar
    [base] Fix {StaticCharVector} and add {StaticOneByteVector} · e04eb281
    Clemens Backes authored
    {StaticCharVector}, according to its name, should return a
    {Vector<const char>}. For getting a {Vector<const uint8_t>}, the method
    should be called {StaticOneByteVector}, analog to the
    {OneByteVector} methods that already exist.
    
    Also, {StaticCharVector} is constexpr, but {StaticOneByteVector} cannot
    be, since it contains a {reinterpret_cast}. The same holds for
    {Vector::cast} in general.
    
    This CL
    - changes the return type of {StaticCharVector} to be
      {Vector<const char>},
    - introduces a new {StaticOneByteVector} which returns
      {Vector<const uint8_t>},
    - fixes constexpr annotations at various methods returning {Vector}s,
    - refactors users of {StaticCharVector} to either use
      {StaticOneByteVector} instead, or work on {char} if that makes more
      sense.
    
    R=leszeks@chromium.org
    
    Bug: v8:10426
    Change-Id: I71e336097e41ad30f982aa6344ca3d67b3a01fe3
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2154196
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#67213}
    e04eb281
Name
Last commit
Last update
..
OWNERS Loading commit data...
address-map.cc Loading commit data...
address-map.h Loading commit data...
allocation.cc Loading commit data...
allocation.h Loading commit data...
bit-vector.cc Loading commit data...
bit-vector.h Loading commit data...
boxed-float.h Loading commit data...
detachable-vector.cc Loading commit data...
detachable-vector.h Loading commit data...
identity-map.cc Loading commit data...
identity-map.h Loading commit data...
locked-queue-inl.h Loading commit data...
locked-queue.h Loading commit data...
memcopy.cc Loading commit data...
memcopy.h Loading commit data...
ostreams.cc Loading commit data...
ostreams.h Loading commit data...
pointer-with-payload.h Loading commit data...
utils-inl.h Loading commit data...
utils.cc Loading commit data...
utils.h Loading commit data...
v8dll-main.cc Loading commit data...
vector.h Loading commit data...
version.cc Loading commit data...
version.h Loading commit data...