Home
last modified time | relevance | path

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

/external/chromium_org/third_party/WebKit/Source/wtf/
DPartitionAlloc.cpp242 if (page->numAllocatedSlots) in partitionAllocShutdownBucket()
420 page->numAllocatedSlots = 0; in partitionPageReset()
447 ASSERT(numSlots + page->numAllocatedSlots == partitionBucketSlots(bucket)); in partitionPageAllocAndFillFreelist()
450 ASSERT(page->numAllocatedSlots >= 0); in partitionPageAllocAndFillFreelist()
454 char* returnObject = base + (size * page->numAllocatedSlots); in partitionPageAllocAndFillFreelist()
482 page->numAllocatedSlots++; in partitionPageAllocAndFillFreelist()
532 ASSERT(page->numAllocatedSlots >= 0); in partitionSetNewActivePage()
533 if (LIKELY(page->numAllocatedSlots == 0)) { in partitionSetNewActivePage()
542 ASSERT(page->numAllocatedSlots == static_cast<int>(partitionBucketSlots(bucket))); in partitionSetNewActivePage()
543 page->numAllocatedSlots = -page->numAllocatedSlots; in partitionSetNewActivePage()
[all …]
DPartitionAllocTest.cpp108 EXPECT_EQ(numSlots, static_cast<size_t>(bucket->activePagesHead->numAllocatedSlots)); in GetFullPage()
119 EXPECT_EQ(numSlots, static_cast<size_t>(abs(page->numAllocatedSlots))); in FreeFullPage()
133 ASSERT(!bucket->activePagesHead->numAllocatedSlots); in CycleFreeCache()
137 EXPECT_EQ(1, bucket->activePagesHead->numAllocatedSlots); in CycleFreeCache()
139 EXPECT_EQ(0, bucket->activePagesHead->numAllocatedSlots); in CycleFreeCache()
150 EXPECT_EQ(1, bucket->activePagesHead->numAllocatedSlots); in CycleGenericFreeCache()
152 EXPECT_EQ(0, bucket->activePagesHead->numAllocatedSlots); in CycleGenericFreeCache()
240 EXPECT_EQ(0, page->numAllocatedSlots); in TEST()
252 EXPECT_EQ(0, page->numAllocatedSlots); in TEST()
263 EXPECT_EQ(0, page->numAllocatedSlots); in TEST()
[all …]
DPartitionAlloc.h232 int16_t numAllocatedSlots; // Deliberately signed, -1 for free page, -n for full pages. member
444 ASSERT(page->numAllocatedSlots >= 0); in partitionBucketAlloc()
452 page->numAllocatedSlots++; in partitionBucketAlloc()
497 ASSERT(page->numAllocatedSlots); in partitionFreeWithPage()
505 --page->numAllocatedSlots; in partitionFreeWithPage()
506 if (UNLIKELY(page->numAllocatedSlots <= 0)) in partitionFreeWithPage()