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