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