• Omer Katz's avatar
    [heap] Move allocation logic to SpaceWithLinearArea · 39f419f0
    Omer Katz authored
    NewSpace and PagedSpace both inherit from SpaceWithLinearArena and
    implement allocation logic on top of it. The parts of the allocation
    path that deal specifically with the linear allocation area are
    equivalent (only minor syntactic differences between them).
    
    This CL refactors the allocation from a linear allocation area out of
    NewSpace and PagedSpace and moves it to SpaceWithLinearArea. This
    eliminates code duplication and keeps everything generally still working
    the same.
    
    This is done as part of an effort to create a stable NewSpace interface
    to allow introducing an alternative paged new space.
    
    Bug: v8:12612
    Change-Id: Ie24345a2d51f6e67ebe8a1d67e586038f7aec8de
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3578547Reviewed-by: 's avatarDominik Inführ <dinfuehr@chromium.org>
    Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Commit-Queue: Omer Katz <omerkatz@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#79955}
    39f419f0
Name
Last commit
Last update
..
benchmarks Loading commit data...
bigint Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer Loading commit data...
fuzzilli Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...