blob: 7792cbccc523861690077fa6525ca7d59292cbd4 [file] [log] [blame]
// Copyright 2020 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FXJS_GC_HEAP_H_
#define FXJS_GC_HEAP_H_
#include <memory>
#include "v8/include/cppgc/heap.h"
#include "v8/include/libplatform/libplatform.h"
struct FXGCHeapDeleter {
void operator()(cppgc::Heap* heap);
};
using FXGCScopedHeap = std::unique_ptr<cppgc::Heap, FXGCHeapDeleter>;
void FXGC_Initialize(v8::Platform* platform);
void FXGC_Release();
FXGCScopedHeap FXGC_CreateHeap();
#endif // FXJS_GC_HEAP_H_