#include "fxjs/gc/heap.h"
#include <utility>
#include "core/fxcrt/check.h"
#include "core/fxcrt/fx_system.h"
#include "v8/include/cppgc/heap.h"
namespace {
size_t g_platform_ref_count = …;
v8::Platform* g_platform = …;
v8::Isolate* g_isolate = …;
}
class CFXGC_Platform final : public cppgc::Platform { … };
void FXGC_Initialize(v8::Platform* platform, v8::Isolate* isolate) { … }
void FXGC_Release() { … }
FXGCScopedHeap FXGC_CreateHeap() { … }
void FXGC_ForceGarbageCollection(cppgc::Heap* heap) { … }
void FXGCHeapDeleter::operator()(cppgc::Heap* heap) { … }