diff options
Diffstat (limited to 'deps/v8/src/heap/cppgc/testing.cc')
-rw-r--r-- | deps/v8/src/heap/cppgc/testing.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/v8/src/heap/cppgc/testing.cc b/deps/v8/src/heap/cppgc/testing.cc index 0c81d7003b..38e96abf78 100644 --- a/deps/v8/src/heap/cppgc/testing.cc +++ b/deps/v8/src/heap/cppgc/testing.cc @@ -54,5 +54,13 @@ void StandaloneTestingHeap::ForceCompactionForNextGarbageCollection() { .EnableForNextGCForTesting(); } +bool IsHeapObjectOld(void* object) { +#if defined(CPPGC_YOUNG_GENERATION) + return internal::HeapObjectHeader::FromObject(object).IsMarked(); +#else + return true; +#endif +} + } // namespace testing } // namespace cppgc |