chromium/third_party/pdfium/fxjs/gc/heap.cpp

// Copyright 2020 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;

}  // namespace

// Taken from v8/samples/cppgc/cppgc-for-v8-embedders.cc.
// Adaptper that makes the global v8::Platform compatible with a
// cppgc::Platform.
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) {}