/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/sandbox/code-pointer.h
30 строк
1 KB
Michaël Zasso
deps: update V8 to 12.2.281.27
31 мар 2024, 16:36
Не верифицирован
31 мар 2024, 16:36
09a8440
Код
Авторство
О чём код?
// Copyright 2023 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_SANDBOX_CODE_POINTER_H_ #define V8_SANDBOX_CODE_POINTER_H_ #include "src/common/globals.h" #include "src/sandbox/code-entrypoint-tag.h" namespace v8 { namespace internal { // Read the pointer to a Code's entrypoint via a code pointer. // Only available when the sandbox is enabled as it requires the code pointer // table. V8_INLINE Address ReadCodeEntrypointViaCodePointerField(Address field_address, CodeEntrypointTag tag); // Writes the pointer to a Code's entrypoint via a code pointer. // Only available when the sandbox is enabled as it requires the code pointer // table. V8_INLINE void WriteCodeEntrypointViaCodePointerField(Address field_address, Address value, CodeEntrypointTag tag); } // namespace internal } // namespace v8 #endif // V8_SANDBOX_CODE_POINTER_H_