diff options
Diffstat (limited to 'chromium/v8/src/heap/cppgc/globals.h')
| -rw-r--r-- | chromium/v8/src/heap/cppgc/globals.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/v8/src/heap/cppgc/globals.h b/chromium/v8/src/heap/cppgc/globals.h index 734abd508ef..d286a7fa428 100644 --- a/chromium/v8/src/heap/cppgc/globals.h +++ b/chromium/v8/src/heap/cppgc/globals.h @@ -16,6 +16,10 @@ namespace internal { using Address = uint8_t*; using ConstAddress = const uint8_t*; +constexpr size_t kKB = 1024; +constexpr size_t kMB = kKB * 1024; +constexpr size_t kGB = kMB * 1024; + // See 6.7.6 (http://eel.is/c++draft/basic.align) for alignment restrictions. We // do not fully support all alignment restrictions (following // alignof(std::max_align_t)) but limit to alignof(double). @@ -42,6 +46,9 @@ constexpr size_t kLargeObjectSizeThreshold = kPageSize / 2; constexpr GCInfoIndex kFreeListGCInfoIndex = 0; constexpr size_t kFreeListEntrySize = 2 * sizeof(uintptr_t); +constexpr size_t kCagedHeapReservationSize = static_cast<size_t>(4) * kGB; +constexpr size_t kCagedHeapReservationAlignment = kCagedHeapReservationSize; + } // namespace internal } // namespace cppgc |
