1// Copyright 2018 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_PTR_COMPR_H_
6#define V8_PTR_COMPR_H_
7
8#include "src/globals.h"
9
10#if V8_TARGET_ARCH_64_BIT
11
12namespace v8 {
13namespace internal {
14
15// See v8:7703 for details about how pointer compression works.
16constexpr size_t kPtrComprHeapReservationSize = size_t{4} * GB;
17constexpr size_t kPtrComprIsolateRootBias = kPtrComprHeapReservationSize / 2;
18constexpr size_t kPtrComprIsolateRootAlignment = size_t{4} * GB;
19
20} // namespace internal
21} // namespace v8
22
23#endif // V8_TARGET_ARCH_64_BIT
24
25#endif // V8_PTR_COMPR_H_
26