Lines Matching refs:address
39 Address address = region_allocator_.AllocateRegion(size); in AllocatePages() local
40 if (address == RegionAllocator::kAllocationFailure) { in AllocatePages()
43 CHECK(page_allocator_->SetPermissions(reinterpret_cast<void*>(address), size, in AllocatePages()
45 return reinterpret_cast<void*>(address); in AllocatePages()
48 bool BoundedPageAllocator::AllocatePagesAt(Address address, size_t size, in AllocatePagesAt() argument
50 CHECK(IsAligned(address, allocate_page_size_)); in AllocatePagesAt()
52 CHECK(region_allocator_.contains(address, size)); in AllocatePagesAt()
54 if (!region_allocator_.AllocateRegionAt(address, size)) { in AllocatePagesAt()
57 CHECK(page_allocator_->SetPermissions(reinterpret_cast<void*>(address), size, in AllocatePagesAt()
64 Address address = reinterpret_cast<Address>(ptr); in ReserveForSharedMemoryMapping() local
65 CHECK(IsAligned(address, allocate_page_size_)); in ReserveForSharedMemoryMapping()
67 CHECK(region_allocator_.contains(address, size)); in ReserveForSharedMemoryMapping()
73 address, region_size, RegionAllocator::RegionState::kExcluded)) { in ReserveForSharedMemoryMapping()
85 Address address = reinterpret_cast<Address>(raw_address); in FreePages() local
86 size_t freed_size = region_allocator_.FreeRegion(address); in FreePages()
95 Address address = reinterpret_cast<Address>(raw_address); in ReleasePages() local
96 CHECK(IsAligned(address, allocate_page_size_)); in ReleasePages()
110 CHECK_EQ(allocated_size, region_allocator_.CheckRegion(address)); in ReleasePages()
116 region_allocator_.TrimRegion(address, new_allocated_size); in ReleasePages()
120 Address free_address = address + new_size; in ReleasePages()
126 bool BoundedPageAllocator::SetPermissions(void* address, size_t size, in SetPermissions() argument
128 DCHECK(IsAligned(reinterpret_cast<Address>(address), commit_page_size_)); in SetPermissions()
130 DCHECK(region_allocator_.contains(reinterpret_cast<Address>(address), size)); in SetPermissions()
131 return page_allocator_->SetPermissions(address, size, access); in SetPermissions()
134 bool BoundedPageAllocator::DiscardSystemPages(void* address, size_t size) { in DiscardSystemPages() argument
135 return page_allocator_->DiscardSystemPages(address, size); in DiscardSystemPages()