v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
member-storage.cc
Go to the documentation of this file.
1// Copyright 2022 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
6
10#include "src/base/macros.h"
11
12namespace cppgc {
13namespace internal {
14
15#if defined(CPPGC_POINTER_COMPRESSION)
16alignas(api_constants::kCachelineSize) CageBaseGlobal::Base
17 CageBaseGlobal::g_base_ = {CageBaseGlobal::kLowerHalfWordMask};
18#endif // defined(CPPGC_POINTER_COMPRESSION)
19
20// Debugging helpers.
21
22#if defined(CPPGC_POINTER_COMPRESSION)
23V8_DEBUGGING_EXPORT extern "C" void*
24_cppgc_internal_Decompress_Compressed_Pointer(uint32_t cmprsd) {
25 return CompressedPointer::Decompress(cmprsd);
26}
27#endif // !defined(CPPGC_POINTER_COMPRESSION)
28
29class MemberDebugHelper final {
30 public:
32 return const_cast<void*>(m->GetRaw());
33 }
34};
35
41
42} // namespace internal
43} // namespace cppgc
static void * Uncompress(MemberBase< DefaultMemberStorage > *m)
int m
Definition mul-fft.cc:294
V8_DEBUGGING_EXPORT C void * _cppgc_internal_Uncompress_Member(void *m)
#define V8_DEBUGGING_EXPORT