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