#include "src/api/api-inl.h"
#include "src/codegen/assembler-inl.h"
#include "src/execution/isolate.h"
#include "src/heap/factory.h"
#include "src/heap/heap-inl.h"
#include "src/ic/handler-configuration.h"
#include "src/objects/data-handler-inl.h"
#include "src/objects/smi.h"
#include "test/cctest/cctest.h"
#include "test/cctest/heap/heap-tester.h"
#include "test/cctest/heap/heap-utils.h"
namespace v8 {
namespace internal {
namespace heap {
Handle<LoadHandler> CreateLoadHandlerForTest(
Factory* factory, AllocationType allocation = AllocationType::kYoung) { … }
TEST(WeakReferencesBasic) { … }
TEST(WeakReferencesOldToOld) { … }
TEST(WeakReferencesOldToNew) { … }
TEST(WeakReferencesOldToNewScavenged) { … }
TEST(WeakReferencesOldToCleared) { … }
TEST(ObjectMovesBeforeClearingWeakField) { … }
TEST(ObjectWithWeakFieldDies) { … }
TEST(ObjectWithWeakReferencePromoted) { … }
TEST(ObjectWithClearedWeakReferencePromoted) { … }
TEST(WeakReferenceWriteBarrier) { … }
TEST(EmptyWeakArray) { … }
TEST(WeakArraysBasic) { … }
TEST(WeakArrayListBasic) { … }
TEST(WeakArrayListRemove) { … }
TEST(Regress7768) { … }
TEST(PrototypeUsersBasic) { … }
namespace {
Tagged<HeapObject> saved_heap_object;
static void TestCompactCallback(Tagged<HeapObject> value, int old_index,
int new_index) { … }
}
TEST(PrototypeUsersCompacted) { … }
}
}
}