• Leszek Swirski's avatar
    [utils] Move BitVector's iterator to STL-like interface. · 59ea4881
    Leszek Swirski authored
    Replace the Advance/Done methods on BitVector::Iterator with
    STL-compatible operator overloads, and add begin/end methods to
    BitVector itself, so that BitVectors can be iterated with ranged for
    loops.
    
    As a drive-by cleanup, make GrowableBitVector hold the BitVector by
    value (to avoid needing to allocate one for empty iteration), and remove
    its unused (and inefficient) Union method.
    
    Change-Id: Idcd34e26bfb087e3ec8297b4a769a51bfab4b6e8
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3455803Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Auto-Submit: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#79071}
    59ea4881
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...
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...
scoped-list.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...