ptr-compr.h 635 Bytes
Newer Older
1 2 3 4
// Copyright 2018 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.

5 6
#ifndef V8_COMMON_PTR_COMPR_H_
#define V8_COMMON_PTR_COMPR_H_
7

8
#include "src/common/globals.h"
9

10 11
#if V8_TARGET_ARCH_64_BIT

12 13 14
namespace v8 {
namespace internal {

15
// See v8:7703 for details about how pointer compression works.
16 17 18 19 20 21 22 23
constexpr size_t kPtrComprHeapReservationSize = size_t{4} * GB;
constexpr size_t kPtrComprIsolateRootAlignment = size_t{4} * GB;

}  // namespace internal
}  // namespace v8

#endif  // V8_TARGET_ARCH_64_BIT

24
#endif  // V8_COMMON_PTR_COMPR_H_