/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/heap/cppgc/member-storage.cc
43 строки
1 KB
Michaël Zasso
deps: update V8 to 13.6.233.8
02 май 2025, 16:06
Не верифицирован
02 май 2025, 16:06
918fe04
Код
Авторство
О чём код?
// Copyright 2022 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. #include "include/cppgc/internal/member-storage.h" #include "include/cppgc/garbage-collected.h" #include "include/cppgc/member.h" #include "src/base/compiler-specific.h" #include "src/base/macros.h" namespace cppgc { namespace internal { #if defined(CPPGC_POINTER_COMPRESSION) alignas(api_constants::kCachelineSize) CageBaseGlobal::Base CageBaseGlobal::g_base_ = {CageBaseGlobal::kLowerHalfWordMask}; #endif // defined(CPPGC_POINTER_COMPRESSION) // Debugging helpers. #if defined(CPPGC_POINTER_COMPRESSION) V8_DEBUGGING_EXPORT extern "C" void* _cppgc_internal_Decompress_Compressed_Pointer(uint32_t cmprsd) { return CompressedPointer::Decompress(cmprsd); } #endif // !defined(CPPGC_POINTER_COMPRESSION) class MemberDebugHelper final { public: static void* Uncompress(MemberBase<DefaultMemberStorage>* m) { return const_cast<void*>(m->GetRaw()); } }; V8_DEBUGGING_EXPORT extern "C" void* _cppgc_internal_Uncompress_Member( void* m) { return MemberDebugHelper::Uncompress( static_cast<MemberBase<DefaultMemberStorage>*>(m)); } } // namespace internal } // namespace cppgc