| Index: Source/wtf/PartitionAlloc.h
|
| diff --git a/Source/wtf/PartitionAlloc.h b/Source/wtf/PartitionAlloc.h
|
| index 78e039f04cf5a5a97ef2bc1884a8d2d4aa3e7b5b..7dfc37a59b554767ac24da81e8bb5be09afa7053 100644
|
| --- a/Source/wtf/PartitionAlloc.h
|
| +++ b/Source/wtf/PartitionAlloc.h
|
| @@ -571,6 +571,12 @@ ALWAYS_INLINE bool partitionBucketIsDirectMapped(PartitionBucket* bucket)
|
| return !bucket->numSystemPagesPerSlotSpan;
|
| }
|
|
|
| +ALWAYS_INLINE bool partitionSizeIsDirectMapped(size_t size)
|
| +{
|
| + size = partitionCookieSizeAdjustAdd(size);
|
| + return size > kGenericMaxBucketed && size <= kGenericMaxDirectMapped;
|
| +}
|
| +
|
| ALWAYS_INLINE size_t partitionDirectMapSize(size_t size)
|
| {
|
| // Caller must check that the size is not above the kGenericMaxDirectMapped
|
|
|