chromium/v8/test/cctest/heap/test-weak-references.cc

// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

TEST(PrototypeUsersCompacted) {}

}  // namespace heap
}  // namespace internal
}  // namespace v8