Lines Matching defs:address
18 // Max number of attempts to allocate page at random address.
52 Address address) {
53 if (!whole_region_.contains(address)) return all_regions_.end();
55 Region key(address, 0, RegionState::kFree);
58 // points exactly to the address we are querying, so the upper_bound will
59 // find the region whose |end()| is greater than the requested address.
61 DCHECK((*iter)->contains(address));
153 // There is enough free space for trying to randomize the address.
159 Address address = begin() + random_offset;
160 if (AllocateRegionAt(address, size, RegionState::kAllocated)) {
161 return address;
251 Address address;
254 address = AllocateRegion(size);
256 address = AllocateAlignedRegion(size, alignment);
259 return address;
262 size_t RegionAllocator::TrimRegion(Address address, size_t new_size) {
265 AllRegionsSet::iterator region_iter = FindRegion(address);
270 if (region->begin() != address || !region->is_allocated()) {
314 size_t RegionAllocator::CheckRegion(Address address) {
315 AllRegionsSet::iterator region_iter = FindRegion(address);
320 if (region->begin() != address || region->is_free()) {
326 bool RegionAllocator::IsFree(Address address, size_t size) {
327 CHECK(contains(address, size));
328 AllRegionsSet::iterator region_iter = FindRegion(address);
333 return region->is_free() && region->contains(address, size);