Lines Matching refs:index
57 * to store the index of the next free entry. When the freelist is empty and a
76 // Retrieves the entry at the given index.
79 inline Address Get(uint32_t index, ExternalPointerTag tag) const;
81 // Sets the entry at the given index to the given value.
84 inline void Set(uint32_t index, Address value, ExternalPointerTag tag);
100 inline void Mark(uint32_t index);
131 inline Address entry_address(uint32_t index) const {
132 return buffer_ + index * sizeof(Address);
135 // Loads the value at the given index. This method is non-atomic, only use it
137 inline Address load(uint32_t index) const {
138 return base::Memory<Address>(entry_address(index));
141 // Stores the provided value at the given index. This method is non-atomic,
143 inline void store(uint32_t index, Address value) {
144 base::Memory<Address>(entry_address(index)) = value;
147 // Atomically loads the value at the given index.
148 inline Address load_atomic(uint32_t index) const {
149 auto addr = reinterpret_cast<base::Atomic64*>(entry_address(index));
153 // Atomically stores the provided value at the given index.
154 inline void store_atomic(uint32_t index, Address value) {
155 auto addr = reinterpret_cast<base::Atomic64*>(entry_address(index));
190 // The index of the first entry on the freelist or zero if the list is empty.