// Copyright 2021 the V8 project 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 V8_HEAP_CPPGC_PLATFORM_H_ #define V8_HEAP_CPPGC_PLATFORM_H_ #include <string> #include "include/cppgc/platform.h" #include "include/cppgc/source-location.h" #include "src/base/macros.h" namespace cppgc::internal { class HeapBase; class V8_EXPORT_PRIVATE FatalOutOfMemoryHandler final { … }; // Gets the global OOM handler that is not bound to any specific Heap instance. FatalOutOfMemoryHandler& GetGlobalOOMHandler(); // Gets the gobal PageAllocator that is not bound to any specific Heap instance. PageAllocator& GetGlobalPageAllocator(); } // namespace cppgc::internal #endif // V8_HEAP_CPPGC_PLATFORM_H_