Lines Matching refs:kPageShift
566 static const size_t kPageShift = 12; variable
567 static const size_t kPageSize = 1 << kPageShift;
583 static const size_t kMinSystemAlloc = 1 << (20 - kPageShift);
849 const size_t my_pages = psize >> kPageShift; in InitSizeClasses()
854 const size_t my_objects = (my_pages << kPageShift) / size; in InitSizeClasses()
855 const size_t prev_objects = (class_to_pages[sc-1] << kPageShift) in InitSizeClasses()
921 const int alloc_size = class_to_pages[cl] << kPageShift; in InitSizeClasses()
929 int(class_to_pages[cl] << kPageShift), in InitSizeClasses()
1042 static const Length kMaxValidPages = (~static_cast<Length>(0)) >> kPageShift;
1047 return (bytes >> kPageShift) + in pages()
1056 ASSERT(bytes <= (kMaxValidPages << kPageShift)); in AllocationSize()
1057 return pages(bytes) << kPageShift; in AllocationSize()
1196 typedef TCMalloc_PageMap3<BITS-kPageShift> Type;
1214 typedef TCMalloc_PageMap3<64 - kPageShift - kBitsUnusedOn64Bit> Type;
1222 typedef TCMalloc_PageMap2<32 - kPageShift> Type;
1223 typedef PackedCache<32 - kPageShift, uint16_t> CacheType;
1313 return (static_cast<uint64_t>(free_pages_) << kPageShift); in FreeBytes()
1528 TCMalloc_SystemRelease(reinterpret_cast<void*>(s->start << kPageShift), in scavenge()
1529 static_cast<size_t>(s->length << kPageShift)); in scavenge()
1575 …stemCommit(reinterpret_cast<void*>(result->start << kPageShift), static_cast<size_t>(n << kPageShi… in New()
1646 …SystemCommit(reinterpret_cast<void*>(best->start << kPageShift), static_cast<size_t>(n << kPageShi… in AllocLarge()
1717 TCMalloc_SystemRelease(reinterpret_cast<void*>(other->start << kPageShift), in mergeDecommittedStates()
1718 static_cast<size_t>(other->length << kPageShift)); in mergeDecommittedStates()
1720 TCMalloc_SystemRelease(reinterpret_cast<void*>(destination->start << kPageShift), in mergeDecommittedStates()
1721 static_cast<size_t>(destination->length << kPageShift)); in mergeDecommittedStates()
1834 TCMalloc_SystemRelease(reinterpret_cast<void*>(s->start << kPageShift), in IncrementalScavenge()
1835 static_cast<size_t>(s->length << kPageShift)); in IncrementalScavenge()
1873 result += r_pages << kPageShift; in ReturnedBytes()
1877 result += s->length << kPageShift; in ReturnedBytes()
1884 return (pages << kPageShift) / 1048576.0; in PagesToMB()
1954 void* ptr = TCMalloc_SystemAlloc(ask << kPageShift, &actual_size, kPageSize); in GrowHeap()
1959 ptr = TCMalloc_SystemAlloc(ask << kPageShift, &actual_size, kPageSize); in GrowHeap()
1963 ask = actual_size >> kPageShift; in GrowHeap()
1970 system_bytes_ += (ask << kPageShift); in GrowHeap()
1971 const PageID p = reinterpret_cast<uintptr_t>(ptr) >> kPageShift; in GrowHeap()
2039 TCMalloc_SystemRelease(reinterpret_cast<void*>(s->start << kPageShift), in ReleaseFreeList()
2040 static_cast<size_t>(s->length << kPageShift)); in ReleaseFreeList()
2472 const PageID p = reinterpret_cast<uintptr_t>(object) >> kPageShift; in ReleaseToSpans()
2493 (span->length<<kPageShift)/ByteSizeForClass(span->sizeclass)); in ReleaseToSpans()
2500 counter_ -= (span->length<<kPageShift) / ByteSizeForClass(span->sizeclass); in ReleaseToSpans()
2696 char* ptr = reinterpret_cast<char*>(span->start << kPageShift); in Populate()
2697 char* limit = ptr + (npages << kPageShift); in Populate()
3448 PageID p = reinterpret_cast<uintptr_t>(ptr) >> kPageShift; in CreateCacheIfNecessary()
3464 CheckedMallocResult(reinterpret_cast<void*>(span->start << kPageShift)); in CreateCacheIfNecessary()
3513 const PageID p = reinterpret_cast<uintptr_t>(ptr) >> kPageShift; in CreateCacheIfNecessary()
3600 while ((((span->start+skip) << kPageShift) & (align - 1)) != 0) { in CreateCacheIfNecessary()
3845 const PageID p = reinterpret_cast<uintptr_t>(old_ptr) >> kPageShift; in CreateCacheIfNecessary()
3858 old_size = span->length << kPageShift; in CreateCacheIfNecessary()
4149 void* ptr = reinterpret_cast<void*>(span->start << kPageShift); in CreateCacheIfNecessary()
4189 vm_range_t ptrRange = { m_coalescedSpans[0]->start << kPageShift, 0 }; in CreateCacheIfNecessary()
4190 …ptrRange.size = (lastSpan->start << kPageShift) - ptrRange.address + (lastSpan->length * kPageSize… in CreateCacheIfNecessary()
4207 vm_address_t spanStartAddress = theSpan->start << kPageShift; in CreateCacheIfNecessary()
4250 vm_address_t previousSpanStartAddress = previousSpan->start << kPageShift; in CreateCacheIfNecessary()
4254 vm_address_t spanStartAddress = span->start << kPageShift; in CreateCacheIfNecessary()