/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/heap/trusted-range.h
32 строки
977 B
Michaël Zasso
deps: update V8 to 14.1.146.11
04 окт 2025, 19:47
Не верифицирован
04 окт 2025, 19:47
7772a2d
Код
Авторство
О чём код?
// 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_HEAP_TRUSTED_RANGE_H_ #define V8_HEAP_TRUSTED_RANGE_H_ #include "include/v8-internal.h" #include "src/common/globals.h" #include "src/utils/allocation.h" namespace v8 { namespace internal { #ifdef V8_ENABLE_SANDBOX // When the sandbox is enabled, the heap's trusted spaces are located outside // of the sandbox so that an attacker cannot corrupt their contents. This // special virtual memory cage hosts them. It also acts as a pointer // compression cage inside of which compressed pointers can be used to // reference objects. We have one trusted range per isolate group. class TrustedRange final : public VirtualMemoryCage { public: bool InitReservation(size_t requested); }; #endif // V8_ENABLE_SANDBOX } // namespace internal } // namespace v8 #endif // V8_HEAP_TRUSTED_RANGE_H_