v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
code-pointer.h
Go to the documentation of this file.
1
// Copyright 2023 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 V8_SANDBOX_CODE_POINTER_H_
6
#define V8_SANDBOX_CODE_POINTER_H_
7
8
#include "
src/common/globals.h
"
9
#include "
src/sandbox/code-entrypoint-tag.h
"
10
11
namespace
v8
{
12
namespace
internal
{
13
14
// Read the pointer to a Code's entrypoint via a code pointer.
15
// Only available when the sandbox is enabled as it requires the code pointer
16
// table.
17
V8_INLINE
Address
ReadCodeEntrypointViaCodePointerField
(
Address
field_address,
18
CodeEntrypointTag
tag);
19
20
// Writes the pointer to a Code's entrypoint via a code pointer.
21
// Only available when the sandbox is enabled as it requires the code pointer
22
// table.
23
V8_INLINE
void
WriteCodeEntrypointViaCodePointerField
(
Address
field_address,
24
Address
value,
25
CodeEntrypointTag
tag);
26
27
}
// namespace internal
28
}
// namespace v8
29
30
#endif
// V8_SANDBOX_CODE_POINTER_H_
code-entrypoint-tag.h
globals.h
v8::internal::ReadCodeEntrypointViaCodePointerField
V8_INLINE Address ReadCodeEntrypointViaCodePointerField(Address field_address, CodeEntrypointTag tag)
Definition
code-pointer-inl.h:19
v8::internal::CodeEntrypointTag
CodeEntrypointTag
Definition
code-entrypoint-tag.h:36
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::Address
Address
Definition
api-callbacks-inl.h:36
v8::internal::WriteCodeEntrypointViaCodePointerField
V8_INLINE void WriteCodeEntrypointViaCodePointerField(Address field_address, Address value, CodeEntrypointTag tag)
Definition
code-pointer-inl.h:36
v8
Definition
api-arguments-inl.h:19
V8_INLINE
#define V8_INLINE
Definition
v8config.h:500
src
sandbox
code-pointer.h
Generated on Sun Apr 6 2025 21:08:57 for v8 by
1.12.0