v8/test
Shu-yu Guo 45bb44985e [weakrefs] Hold unregister tokens weakly
Change unregister tokens to be held weakly instead of strongly. This
enables the use case for an object to be used as its own unregister
token.

To avoid using an ephemeron table, FinalizationGroup's key_map is
changed to key off unregister tokens' identity hashes. Because hashes
may collide, a single key list may rarely contain multiple tokens. When
a FinalizationGroup WeakCell's token becomes unreachable, during GC, it
is removed from the the doubly linked key list and removed from the key
map if it had a unique key.

Bug: v8:8179
Change-Id: If88fd2ab196e3f9a287990ae345117a0abb2f04d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1970493
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65532}
2019-12-19 22:42:09 +00:00
..
benchmarks Remove 'embedded_builtins' variant 2019-10-22 12:58:02 +00:00
cctest [weakrefs] Hold unregister tokens weakly 2019-12-19 22:42:09 +00:00
common [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
debugger Remove and update some outdated TODO(mstarzinger). 2019-12-13 10:18:04 +00:00
fuzzer Reland "[wasm] Share native modules compiled from the same bytes" 2019-12-18 14:40:28 +00:00
inspector [wasm] Support remove breakpoint 2019-12-18 18:43:58 +00:00
intl Hide date related types from Intl.DisplayNames 2019-12-19 19:31:09 +00:00
js-perf-test [js-perf-tests] Adds performance tests for BigInt subtraction 2019-10-22 13:32:09 +00:00
memory [owners] Remove redundant OWNERS files in test/ 2019-06-24 12:44:32 +00:00
message V8 Wasm locations should always be based on byte offsets 2019-11-05 14:53:45 +00:00
mjsunit [weakrefs] Hold unregister tokens weakly 2019-12-19 22:42:09 +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 Hide date related types from Intl.DisplayNames 2019-12-19 19:31:09 +00:00
torque [torque] Implement Rest/Strict/Sloppy argument stubs in Torque 2019-12-19 11:00:10 +00:00
unittests [torque] Enum language feature 2019-12-18 16:24:48 +00:00
wasm-api-tests [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
wasm-js [wasm] Update wasm spec tests 2019-12-16 14:14:39 +00:00
wasm-spec-tests [mips][wasm] Update wasm spec tests 2019-12-17 10:40:06 +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 Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00