920a53b6b6
The category name changed in https://crrev.com/c/2159690 (in depot_tools), hence presubmit tests start failing whenever someone touches a file which still refers to the old category. R=zhin@chromium.org TBR=machenbach@chromium.org No-Try: true No-Tree-Checks: true Change-Id: I62813a42d63e512d421c4fe94229d04a56056978 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2165760 Reviewed-by: Zhi An Ng <zhin@chromium.org> Reviewed-by: Clemens Backes <clemensb@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/master@{#67403}
32 lines
921 B
C++
32 lines
921 B
C++
// Copyright 2020 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 INCLUDE_CPPGC_PLATFORM_H_
|
|
#define INCLUDE_CPPGC_PLATFORM_H_
|
|
|
|
#include "v8-platform.h" // NOLINT(build/include_directory)
|
|
#include "v8config.h" // NOLINT(build/include_directory)
|
|
|
|
namespace cppgc {
|
|
|
|
// TODO(v8:10346): Put PageAllocator in a non-V8 include header to avoid
|
|
// depending on namespace v8.
|
|
using PageAllocator = v8::PageAllocator;
|
|
|
|
// Initializes the garbage collector with the provided platform. Must be called
|
|
// before creating a Heap.
|
|
V8_EXPORT void InitializePlatform(PageAllocator* page_allocator);
|
|
|
|
// Must be called after destroying the last used heap.
|
|
V8_EXPORT void ShutdownPlatform();
|
|
|
|
namespace internal {
|
|
|
|
V8_EXPORT void Abort();
|
|
|
|
} // namespace internal
|
|
} // namespace cppgc
|
|
|
|
#endif // INCLUDE_CPPGC_PLATFORM_H_
|