v8/test
Dan Elphick 93cfa4587b [heap] Add SharedReadOnlySpace for shared RO_SPACE
When RO_SPACE is to be shared, this constructs SharedReadOnlySpace
object (via ReadOnlySpace::DetachPagesAndAddToArtifacts) that contains
the shared artifacts and the original ReadOnlySpace is destroyed. This
is mostly a conceptual change and SharedReadOnlySpace behaves
identically to ReadOnlySpace (and subclasses it).

Also adds ReadOnlyArtifacts that contains the shared artifacts and which
is stored as a std::weak_ptr in a global so it can be destroyed when all
std::shared_ptrs to it are destroyed. Since this allows the ReadOnlyHeap
to be reconstructed when all Isolates are destroyed,
ReadOnlyHeap::ClearSharedHeapForTest is removed along with all uses
since that is now done automatically.

The ReadOnlyArtifacts class now owns all the shared artifacts and is
responsible for deleting them on exit (mostly via unique_ptr).

Bug: v8:10454
Change-Id: I2fe7110a4ab9cf8719dd198bafc1d083bee641b1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2154204
Commit-Queue: Dan Elphick <delphick@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67440}
2020-04-28 14:18:32 +00:00
..
benchmarks Create master files per benchmark in csuite 2020-02-26 10:37:33 +00:00
cctest [heap] Add SharedReadOnlySpace for shared RO_SPACE 2020-04-28 14:18:32 +00:00
common [wasm-gc] Add a basic test case for structs 2020-04-21 17:32:16 +00:00
debugger [debug] Reenable tests in stress_incremental_marking 2020-04-16 16:31:27 +00:00
debugging Wasm debugging with LLDB: access Wasm engine state 2020-04-28 01:02:32 +00:00
fuzzer Fix undefined behavior due to memcpy-ing bool var 2020-04-27 09:47:43 +00:00
inspector [heap] Add SharedReadOnlySpace for shared RO_SPACE 2020-04-28 14:18:32 +00:00
intl [intl] Remove flag for Intl.DisplayNames 2020-04-25 02:14:01 +00:00
js-perf-test [cleanup][test] Fix typo in js-perf-test/Scope/with.js 2020-02-12 10:59:54 +00:00
memory
message [wasm] Remove the --wasm-interpret-all flag 2020-04-28 08:14:52 +00:00
mjsunit [turbofan] Fix bug in typed array iteration 2020-04-28 13:36:26 +00:00
mkgrokdump [heap] Enable Verify for RO_SPACE when it is shared 2019-11-04 09:55:45 +00:00
mozilla Remove and update some outdated TODO(mstarzinger). 2019-12-13 10:18:04 +00:00
test262 [intl] Remove flag for Intl.DisplayNames 2020-04-25 02:14:01 +00:00
torque [torque] allow builtins without context parameter 2020-04-28 13:20:56 +00:00
unittests Revert "Reland "[turbofan][csa] optimize Smi untagging better"" 2020-04-28 12:48:18 +00:00
wasm-api-tests [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
wasm-js [wasm] Remove remaining multi-value tests 2020-04-22 19:49:03 +00:00
wasm-spec-tests [wasm] Remove remaining multi-value tests 2020-04-22 19:49:03 +00:00
webkit [class] Improve error message for calling anonymous class constructors 2019-12-05 21:13:07 +00:00
BUILD.gn [preparser] deprecate stand-alone "preparser" test-suite 2019-11-20 08:52:59 +00:00
OWNERS