5#ifndef INCLUDE_CPPGC_INTERNAL_API_CONSTANTS_H_
6#define INCLUDE_CPPGC_INTERNAL_API_CONSTANTS_H_
19namespace api_constants {
21constexpr size_t kKB = 1024;
28static constexpr size_t kFullyConstructedBitFieldOffsetFromPayload =
31static constexpr uint16_t kFullyConstructedBitMask = uint16_t{1};
33static constexpr size_t kPageSize =
size_t{1} << 17;
35static constexpr size_t kLargeObjectSizeThreshold = kPageSize / 2;
37#if defined(CPPGC_CAGED_HEAP)
38constexpr size_t kCagedHeapReservationSize =
static_cast<size_t>(4) *
kGB;
39constexpr size_t kCagedHeapReservationAlignment = kCagedHeapReservationSize;
42static constexpr size_t kDefaultAlignment =
sizeof(
void*);
45static constexpr size_t kMaxSupportedAlignment = 2 * kDefaultAlignment;
constexpr size_t kAllocationGranularity