5 #ifndef INCLUDE_CPPGC_INTERNAL_API_CONSTANTS_H_
6 #define INCLUDE_CPPGC_INTERNAL_API_CONSTANTS_H_
19 namespace api_constants {
23 static constexpr
size_t kFullyConstructedBitFieldOffsetFromPayload =
26 static constexpr
size_t kFullyConstructedBitMask =
size_t{1};
29 static constexpr
size_t kPageSize =
size_t{1} << 17;
30 static constexpr
size_t kPageAlignment = kPageSize;
31 static constexpr
size_t kPageBaseMask = ~(kPageAlignment - 1);
32 static constexpr
size_t kGuardPageSize = 4096;
35 static constexpr
size_t kHeapOffset = 0;
37 static constexpr
size_t kLargeObjectSizeThreshold = kPageSize / 2;
44 #endif // INCLUDE_CPPGC_INTERNAL_API_CONSTANTS_H_