Home
last modified time | relevance | path

Searched refs:kPartitionPageSize (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/wtf/
DPartitionAlloc.cpp42 COMPILE_ASSERT(WTF::kPartitionPageSize * 4 <= WTF::kSuperPageSize, ok_super_page_size);
43 COMPILE_ASSERT(!(WTF::kSuperPageSize % WTF::kPartitionPageSize), ok_super_page_multiple);
46 COMPILE_ASSERT(WTF::kSystemPageSize * 4 <= WTF::kPartitionPageSize, ok_partition_page_size);
47 COMPILE_ASSERT(!(WTF::kPartitionPageSize % WTF::kSystemPageSize), ok_partition_page_multiple);
327 ASSERT(!(reinterpret_cast<uintptr_t>(root->nextPartitionPage) % kPartitionPageSize)); in partitionAllocPartitionPages()
328 ASSERT(!(reinterpret_cast<uintptr_t>(root->nextPartitionPageEnd) % kPartitionPageSize)); in partitionAllocPartitionPages()
330 size_t totalSize = kPartitionPageSize * numPartitionPages; in partitionAllocPartitionPages()
353 char* ret = superPage + kPartitionPageSize; in partitionAllocPartitionPages()
355 root->nextPartitionPageEnd = root->nextSuperPage - kPartitionPageSize; in partitionAllocPartitionPages()
361 …setSystemPagesInaccessible(superPage + (kSystemPageSize * 2), kPartitionPageSize - (kSystemPageSiz… in partitionAllocPartitionPages()
[all …]
DPartitionAllocTest.cpp172 …EXPECT_EQ(WTF::kPartitionPageSize + kPointerOffset, reinterpret_cast<size_t>(ptr) & WTF::kSuperPag… in TEST()
337 …size_t numToFillFreeListPage = WTF::kPartitionPageSize / (sizeof(WTF::PartitionPage) + kExtraAlloc… in TEST()
415 EXPECT_EQ(WTF::kPartitionPageSize, secondSuperPageOffset); in TEST()
523 size_t size = WTF::kPartitionPageSize - kExtraAllocSize; in TEST()
534 …size = (((WTF::kPartitionPageSize * WTF::kMaxPartitionPagesPerSlotSpan) - WTF::kSystemPageSize) / … in TEST()
941 …EXPECT_EQ(WTF::kPartitionPageSize, reinterpret_cast<uintptr_t>(pageBase) & WTF::kSuperPageOffsetMa… in TEST()
942 pageBase -= WTF::kPartitionPageSize; in TEST()
959 …EXPECT_EQ(WTF::kPartitionPageSize, reinterpret_cast<uintptr_t>(pageBase) & WTF::kSuperPageOffsetMa… in TEST()
960 pageBase -= WTF::kPartitionPageSize; in TEST()
1005 EXPECT_EQ(WTF::kPartitionPageSize, allocator.root()->totalSizeOfCommittedPages); in TEST()
[all …]
DPartitionAlloc.h143 static const size_t kPartitionPageSize = 1 << kPartitionPageShift; variable
144 static const size_t kPartitionPageOffsetMask = kPartitionPageSize - 1;
154 static const size_t kNumSystemPagesPerPartitionPage = kPartitionPageSize / kSystemPageSize;
166 static const size_t kNumPartitionPagesPerSuperPage = kSuperPageSize / kPartitionPageSize;