chromium/v8/src/heap/cppgc/heap-consistency.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/heap-consistency.h"

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

namespace cppgc {
namespace subtle {

// static
bool DisallowGarbageCollectionScope::IsGarbageCollectionAllowed(
    cppgc::HeapHandle& heap_handle) {}

// static
void DisallowGarbageCollectionScope::Enter(cppgc::HeapHandle& heap_handle) {}

// static
void DisallowGarbageCollectionScope::Leave(cppgc::HeapHandle& heap_handle) {}

DisallowGarbageCollectionScope::DisallowGarbageCollectionScope(
    cppgc::HeapHandle& heap_handle)
    :{}

DisallowGarbageCollectionScope::~DisallowGarbageCollectionScope() {}

// static
void NoGarbageCollectionScope::Enter(cppgc::HeapHandle& heap_handle) {}

// static
void NoGarbageCollectionScope::Leave(cppgc::HeapHandle& heap_handle) {}

NoGarbageCollectionScope::NoGarbageCollectionScope(
    cppgc::HeapHandle& heap_handle)
    :{}

NoGarbageCollectionScope::~NoGarbageCollectionScope() {}

}  // namespace subtle
}  // namespace cppgc