5 #ifndef INCLUDE_CPPGC_INTERNAL_API_CONSTANTS_H_
6 #define INCLUDE_CPPGC_INTERNAL_API_CONSTANTS_H_
21 constexpr size_t
kKB = 1024;
28 static constexpr size_t kFullyConstructedBitFieldOffsetFromPayload =
31 static constexpr uint16_t kFullyConstructedBitMask = uint16_t{1};
33 static constexpr size_t kPageSize = size_t{1} << 17;
35 static constexpr size_t kLargeObjectSizeThreshold = kPageSize / 2;
37 #if defined(CPPGC_CAGED_HEAP)
42 static constexpr size_t kDefaultAlignment =
sizeof(
void*);
45 static constexpr size_t kMaxSupportedAlignment = 2 * kDefaultAlignment;