• Clemens Backes's avatar
    [utils] Improve BitVector performance · 11de0762
    Clemens Backes authored
    Avoid most of the {is_inline()} checks by having a {data_begin_} pointer
    which either points at the inline storage or at the zone-allocated
    memory.
    This replaces a dynamic branch by a memory indirection, which is
    beneficial for big (non-inline) BitVectors. For small BitVectors we will
    have to see what the bots say; the hypothesis is that a memory load is
    still faster than a dynamic branch.
    
    Apart from better performance, this change allows for simpler code in
    many places, including the iterator implementation.
    
    R=jkummerow@chromium.org
    
    Bug: v8:13063
    Change-Id: I1e28279d1a438598e0b8403a6a4078c2cd2a4c48
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3776685Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#81902}
    11de0762
Name
Last commit
Last update
..
DIR_METADATA Loading commit data...
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...
hex-format.cc Loading commit data...
hex-format.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...
scoped-list.h Loading commit data...
sha-256.cc Loading commit data...
sha-256.h Loading commit data...
sparse-bit-vector.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...
version.cc Loading commit data...
version.h Loading commit data...