chromium/v8/src/heap/cppgc/gc-invoker.cc

// Copyright 2020 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/heap/cppgc/gc-invoker.h"

#include <memory>
#include <optional>

#include "include/cppgc/common.h"
#include "include/cppgc/platform.h"
#include "src/heap/cppgc/task-handle.h"

namespace cppgc {
namespace internal {

class GCInvoker::GCInvokerImpl final : public GarbageCollector {};

GCInvoker::GCInvokerImpl::GCInvokerImpl(GarbageCollector* collector,
                                        cppgc::Platform* platform,
                                        cppgc::Heap::StackSupport stack_support)
    :{}

GCInvoker::GCInvokerImpl::~GCInvokerImpl() {}

void GCInvoker::GCInvokerImpl::CollectGarbage(GCConfig config) {}

void GCInvoker::GCInvokerImpl::StartIncrementalGarbageCollection(
    GCConfig config) {}

GCInvoker::GCInvoker(GarbageCollector* collector, cppgc::Platform* platform,
                     cppgc::Heap::StackSupport stack_support)
    :{}

GCInvoker::~GCInvoker() = default;

void GCInvoker::CollectGarbage(GCConfig config) {}

void GCInvoker::StartIncrementalGarbageCollection(GCConfig config) {}

size_t GCInvoker::epoch() const {}

std::optional<EmbedderStackState> GCInvoker::overridden_stack_state() const {}

void GCInvoker::set_override_stack_state(EmbedderStackState state) {}

void GCInvoker::clear_overridden_stack_state() {}

#ifdef V8_ENABLE_ALLOCATION_TIMEOUT
std::optional<int> GCInvoker::UpdateAllocationTimeout() {}
#endif  // V8_ENABLE_ALLOCATION_TIMEOUT

}  // namespace internal
}  // namespace cppgc