V8
latest master commit
V8 is Google's open source JavaScript engine
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
c
d
f
g
h
i
j
m
n
o
p
r
s
t
u
Variables
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
c
e
g
i
j
k
m
n
p
r
s
t
w
Enumerator
a
b
c
d
e
g
i
j
k
n
o
p
r
s
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
g
i
m
n
p
r
s
t
u
w
Enumerations
a
b
c
e
f
g
m
n
o
p
s
t
u
w
Enumerator
b
c
d
e
h
j
k
n
o
p
r
s
t
u
Related Functions
a
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Files
File List
Globals
All
c
m
s
u
v
Macros
c
m
s
u
v
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
accessors.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_INTERNAL_ACCESSORS_H_
6
#define INCLUDE_CPPGC_INTERNAL_ACCESSORS_H_
7
8
#include "
cppgc/internal/api-constants.h
"
9
10
namespace
cppgc
{
11
12
class
Heap;
13
14
namespace
internal {
15
16
inline
cppgc::Heap
*
GetHeapFromPayload
(
const
void
* payload) {
17
return
*
reinterpret_cast<
cppgc::Heap
**
>
(
18
((
reinterpret_cast<
uintptr_t
>
(payload) & api_constants::kPageBaseMask) +
19
api_constants::kGuardPageSize) +
20
api_constants::kHeapOffset);
21
}
22
23
}
// namespace internal
24
}
// namespace cppgc
25
26
#endif // INCLUDE_CPPGC_INTERNAL_ACCESSORS_H_
cppgc::internal::GetHeapFromPayload
cppgc::Heap * GetHeapFromPayload(const void *payload)
Definition:
accessors.h:16
cppgc
Definition:
allocation.h:18
api-constants.h
cppgc::Heap
Definition:
heap.h:20
v8
include
cppgc
internal
accessors.h
Generated by
1.8.17