Lines Matching defs:address
10 #include "src/base/address-region.h"
17 // Helper class for managing used/free regions within [address, address+size)
43 RegionAllocator(Address address, size_t size, size_t page_size);
70 // the address of the region on success or kAllocationFailure.
76 // address and the size must be |page_size|-aligned. On success returns
88 // must be a multiple of |page_size|. Returns the address of the region on
93 // specified address but fall back to allocating the region elsewhere if
97 // Frees region at given |address|, returns the size of the region.
98 // There must be a used region starting at given address otherwise nothing
100 size_t FreeRegion(Address address) { return TrimRegion(address, 0); }
102 // Decreases size of the previously allocated region at |address|, returns
106 size_t TrimRegion(Address address, size_t new_size);
108 // If there is a used region starting at given address returns its size
110 size_t CheckRegion(Address address);
113 bool IsFree(Address address, size_t size);
119 bool contains(Address address) const {
120 return whole_region_.contains(address);
123 bool contains(Address address, size_t size) const {
124 return whole_region_.contains(address, size);
139 Region(Address address, size_t size, RegionState state)
140 : AddressRegion(address, size), state_(state) {}
193 // Returns region containing given address or nullptr.
194 AllRegionsSet::iterator FindRegion(Address address);