v8/test
Michael Lippautz 143e6a74d8 cppgc: Check for correct base class inheritance
The only valid way to define a GCed type T is by inheriting from
GarbageCollected<T>. Since this is prone to typos (see tests), add a
simple check that covers most interesting use cases.

The static assert covers
  A -> B -> GarbageCollected<C>

The static assert does not cover
 A -> B -> C -> GarbageCollected<B>

(In order to do so, we would need __direct_bases() support which is
not yet available for C++.)

Bug: pdfium:1670, chromium:1056170
Change-Id: I494de48992f8ba9a1f0f9daad60584d828717403
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2810415
Reviewed-by: Omer Katz <omerkatz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73854}
2021-04-08 09:23:57 +00:00
..
benchmarks IWYU: Added missing include: include/cppgc/persistent.h 2021-02-17 17:37:29 +00:00
cctest Move Map::ReconfigureExistingProperty to MapUpdater 2021-04-08 07:06:37 +00:00
common [wasm][fuzzer] Stack overflow is nondeterministic 2021-03-30 11:05:11 +00:00
debugger [debugger] Consider close-by functions when setting a breakpoint 2021-03-15 07:00:49 +00:00
debugging [wasm] Rename kWasmStmt -> kWasmVoid 2021-03-22 07:58:18 +00:00
fuzzer [wasm][fuzzer] Fuzz Liftoff debug code paths 2021-04-07 14:29:16 +00:00
fuzzilli Fix unhandled promise rejections in REPRL mode 2020-09-30 13:34:23 +00:00
inspector [inspector] Skip special __proto__ property if already present. 2021-04-07 14:56:56 +00:00
intl Fix BestFitMatcher due to invalid locale id in ICU 2021-04-07 06:17:53 +00:00
js-perf-test Update OWNERS in test/* 2021-02-25 14:26:24 +00:00
memory Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
message PPC [simd]: enable simd on PowerPC 9 and above 2021-04-01 19:43:14 +00:00
mjsunit [compiler] Make fast API test functions more robust 2021-04-08 07:09:37 +00:00
mkgrokdump [build] Fold v8_wrappers into v8_libbase 2021-02-25 10:56:20 +00:00
mozilla [compiler, infra] Add a --stress-concurrent-inlining flag and a bot 2021-01-29 12:05:03 +00:00
test262 [language] Fix Array.prototype.sort 2021-03-24 11:20:58 +00:00
torque [torque] Add LazyNode support 2021-02-23 16:51:53 +00:00
unittests cppgc: Check for correct base class inheritance 2021-04-08 09:23:57 +00:00
wasm-api-tests Reland "[no-wasm] Exclude src/wasm from compilation" 2021-03-11 14:29:26 +00:00
wasm-js [wasm] Update spec tests and un-fail SIMD tests 2021-03-29 23:00:21 +00:00
wasm-spec-tests [wasm] Update spec tests and un-fail SIMD tests 2021-03-29 23:00:21 +00:00
webkit Disallow \8 and \9 in strict mode and template literals 2020-08-03 18:05:14 +00:00
BUILD.gn [no-wasm] Exclude more targets from build 2021-03-09 11:25:54 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00