chromium/v8/src/heap/cppgc/testing.cc

// Copyright 2021 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 "include/cppgc/testing.h"

#include "src/base/logging.h"
#include "src/heap/cppgc/heap-base.h"

namespace cppgc {
namespace testing {

OverrideEmbedderStackStateScope::OverrideEmbedderStackStateScope(
    HeapHandle& heap_handle, EmbedderStackState state)
    :{}

OverrideEmbedderStackStateScope::~OverrideEmbedderStackStateScope() {}

StandaloneTestingHeap::StandaloneTestingHeap(HeapHandle& heap_handle)
    :{}

void StandaloneTestingHeap::StartGarbageCollection() {}

bool StandaloneTestingHeap::PerformMarkingStep(EmbedderStackState stack_state) {}

void StandaloneTestingHeap::FinalizeGarbageCollection(
    EmbedderStackState stack_state) {}

void StandaloneTestingHeap::ToggleMainThreadMarking(bool should_mark) {}

void StandaloneTestingHeap::ForceCompactionForNextGarbageCollection() {}

bool IsHeapObjectOld(void* object) {}

}  // namespace testing
}  // namespace cppgc