• Dan Elphick's avatar
    Revert "[heap] Make ReadOnlySpace use bump pointer allocation" · f78d69fa
    Dan Elphick authored
    This reverts commit 81c34968 and also
    490f3580 which depends on the former.
    
    Reason for revert: Break CFI tests in chromium https://ci.chromium.org/p/chromium/builders/ci/Linux%20CFI/17438
    Original change's description:
    > [heap] Make ReadOnlySpace use bump pointer allocation
    >
    > This changes ReadOnlySpace to no longer be a PagedSpace but instead it
    > is now a BaseSpace. BasicSpace is a new base class that Space inherits
    > from and which has no allocation methods and does not dictate how the
    > pages should be held.
    >
    > ReadOnlySpace unlike Space holds its pages as a
    > std::vector<ReadOnlyPage>, where ReadOnlyPage directly subclasses
    > BasicMemoryChunk, meaning they do not have prev_ and next_ pointers and
    > cannot be held in a heap::List. This is desirable since with pointer
    > compression we would like to remap these pages to different memory
    > addresses which would be impossible with a heap::List.
    >
    > Since ReadOnlySpace no longer uses most of the code from the other
    > Spaces it makes sense to simplify its memory allocation to use a simple
    > bump pointer and always allocate a new page whenever an allocation
    > exceeds the remaining space on the final page.
    >
    > Change-Id: Iee6d9f96cfb174b4026ee671ee4f897909b38418
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2209060
    > Commit-Queue: Dan Elphick <delphick@chromium.org>
    > Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#68137}
    
    TBR=ulan@chromium.org,delphick@chromium.org
    
    # Not skipping CQ checks because original CL landed > 1 day ago.
    
    Change-Id: I68c9834872e55eb833be081f8ff99b786bfa9894
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2232552
    Commit-Queue: Dan Elphick <delphick@chromium.org>
    Reviewed-by: 's avatarDan Elphick <delphick@chromium.org>
    Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#68211}
    f78d69fa
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
OWNERS Loading commit data...
arguments-inl.h Loading commit data...
arguments.cc Loading commit data...
arguments.h Loading commit data...
execution.cc Loading commit data...
execution.h Loading commit data...
frame-constants.h Loading commit data...
frames-inl.h Loading commit data...
frames.cc Loading commit data...
frames.h Loading commit data...
futex-emulation.cc Loading commit data...
futex-emulation.h Loading commit data...
interrupts-scope.cc Loading commit data...
interrupts-scope.h Loading commit data...
isolate-data.h Loading commit data...
isolate-inl.h Loading commit data...
isolate-utils-inl.h Loading commit data...
isolate-utils.h Loading commit data...
isolate.cc Loading commit data...
isolate.h Loading commit data...
local-isolate-wrapper-inl.h Loading commit data...
local-isolate-wrapper.h Loading commit data...
messages.cc Loading commit data...
messages.h Loading commit data...
microtask-queue.cc Loading commit data...
microtask-queue.h Loading commit data...
off-thread-isolate-inl.h Loading commit data...
off-thread-isolate.cc Loading commit data...
off-thread-isolate.h Loading commit data...
pointer-authentication-dummy.h Loading commit data...
pointer-authentication.h Loading commit data...
protectors-inl.h Loading commit data...
protectors.cc Loading commit data...
protectors.h Loading commit data...
runtime-profiler.cc Loading commit data...
runtime-profiler.h Loading commit data...
simulator-base.cc Loading commit data...
simulator-base.h Loading commit data...
simulator.h Loading commit data...
stack-guard.cc Loading commit data...
stack-guard.h Loading commit data...
thread-id.cc Loading commit data...
thread-id.h Loading commit data...
thread-local-top.cc Loading commit data...
thread-local-top.h Loading commit data...
v8threads.cc Loading commit data...
v8threads.h Loading commit data...
vm-state-inl.h Loading commit data...
vm-state.h Loading commit data...