V8
latest master commit
V8 is Google's open source JavaScript engine
platform.h
Go to the documentation of this file.
1
// Copyright 2020 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef INCLUDE_CPPGC_PLATFORM_H_
6
#define INCLUDE_CPPGC_PLATFORM_H_
7
8
#include "
v8-platform.h
"
// NOLINT(build/include_directory)
9
#include "
v8config.h
"
// NOLINT(build/include_directory)
10
11
namespace
cppgc
{
12
13
// TODO(v8:10346): Put PageAllocator in a non-V8 include header to avoid
14
// depending on namespace v8.
15
using
PageAllocator
=
v8::PageAllocator
;
16
17
// Initializes the garbage collector with the provided platform. Must be called
18
// before creating a Heap.
19
V8_EXPORT
void
InitializePlatform
(
PageAllocator
* page_allocator);
20
21
// Must be called after destroying the last used heap.
22
V8_EXPORT
void
ShutdownPlatform
();
23
24
namespace
internal {
25
26
V8_EXPORT
void
Abort
();
27
28
}
// namespace internal
29
}
// namespace cppgc
30
31
#endif // INCLUDE_CPPGC_PLATFORM_H_
cppgc::internal::Abort
V8_EXPORT void Abort()
v8::PageAllocator
Definition:
v8-platform.h:309
cppgc
Definition:
allocation.h:18
cppgc::InitializePlatform
V8_EXPORT void InitializePlatform(PageAllocator *page_allocator)
v8config.h
V8_EXPORT
#define V8_EXPORT
Definition:
v8config.h:467
cppgc::PageAllocator
v8::PageAllocator PageAllocator
Definition:
platform.h:15
v8-platform.h
cppgc::ShutdownPlatform
V8_EXPORT void ShutdownPlatform()
v8
include
cppgc
platform.h
Generated by
1.8.17