Lines Matching refs:topIndex
108 size_t topIndex = segment_state_.parts.topIndex; in Add() local
115 if (topIndex == max_entries_) { in Add()
128 DCHECK_GT(topIndex, 1U); in Add()
130 IrtEntry* pScan = &table_[topIndex - 1]; in Add()
134 DCHECK_GE(pScan, table_ + prevState.parts.topIndex); in Add()
141 index = topIndex++; in Add()
142 segment_state_.parts.topIndex = topIndex; in Add()
147 LOG(INFO) << "+++ added at " << ExtractIndex(result) << " top=" << segment_state_.parts.topIndex in Add()
176 int topIndex = segment_state_.parts.topIndex; in Remove() local
177 int bottomIndex = prevState.parts.topIndex; in Remove()
201 << " vs " << bottomIndex << "-" << topIndex << ")"; in Remove()
204 if (idx >= topIndex) { in Remove()
207 << " (bottom=" << bottomIndex << " top=" << topIndex << ")"; in Remove()
211 if (idx == topIndex - 1) { in Remove()
221 while (--topIndex > bottomIndex && numHoles != 0) { in Remove()
223 LOG(INFO) << "+++ checking for hole at " << topIndex - 1 in Remove()
225 << table_[topIndex - 1].GetReference()->Read<kWithoutReadBarrier>(); in Remove()
227 if (!table_[topIndex - 1].GetReference()->IsNull()) { in Remove()
231 LOG(INFO) << "+++ ate hole at " << (topIndex - 1); in Remove()
236 segment_state_.parts.topIndex = topIndex; in Remove()
238 segment_state_.parts.topIndex = topIndex-1; in Remove()
240 LOG(INFO) << "+++ ate last entry " << topIndex - 1; in Remove()