v8/test/cctest/heap
Michael Lippautz 3677468397 [api, heap] Implement TracedReference
TracedGlobalTrait was unable to override v8::TracedGlobal<v8::Object> for
avoiding the destructor because it is needed on the API surface itself and C++
ODR which prohibits specialization after template instantiation.

Avoid this problem by providing a separate type TracedReference
that, similar to TracedGlobal, is purely traced but avoids the destructor
completely. This only works for embedders that have their memory management
tied to V8 as it is prone to accessing already reclaimed objects otherwise.

Bug: chromium:995684
Change-Id: Iab4332ed417b26c58638a8f9389174cc355a305b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1840972
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64150}
2019-10-07 22:34:54 +00:00
..
heap-tester.h [torque] allow untagged builtin parameters 2019-10-07 22:32:44 +00:00
heap-utils.cc [tests] Speed up mjsunit/packed-elements by 1500x 2019-09-17 12:05:11 +00:00
heap-utils.h Reland "Move API-related files" 2019-05-17 12:52:27 +00:00
test-alloc.cc Revert "[heap] Remove ClearRecordedSlots" 2019-08-22 12:06:36 +00:00
test-array-buffer-tracker.cc Reland x6 [arraybuffer] Rearchitect backing store ownership 2019-09-09 13:07:42 +00:00
test-compaction.cc [tests] Speed up mjsunit/packed-elements by 1500x 2019-09-17 12:05:11 +00:00
test-concurrent-marking.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-embedder-tracing.cc [api, heap] Implement TracedReference 2019-10-07 22:34:54 +00:00
test-external-string-tracker.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-heap.cc [torque] allow untagged builtin parameters 2019-10-07 22:32:44 +00:00
test-incremental-marking.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-invalidated-slots.cc [heap] Insert directly into RememberedSet and remove StoreBuffer 2019-10-07 10:19:53 +00:00
test-iterators.cc [roheap] Move read_only_heap() from heap to isolate 2019-07-05 14:25:00 +00:00
test-lab.cc Revert "[heap] Remove ClearRecordedSlots" 2019-08-22 12:06:36 +00:00
test-mark-compact.cc Revert "[heap] Remove ClearRecordedSlots" 2019-08-22 12:06:36 +00:00
test-page-promotion.cc [cleanup] Eliminate non-const reference parameters 2019-09-10 09:31:07 +00:00
test-spaces.cc Revert "[heap] Remove ClearRecordedSlots" 2019-08-22 12:06:36 +00:00
test-unmapper.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-weak-references.cc [torque] Get rid of @noVerifier annotation on PromiseReactionJobTask 2019-06-13 16:24:10 +00:00