Lines Matching refs:topIndex
77 if (sst.parts.topIndex > pRef->segmentState.parts.topIndex) { in dvmPopIndirectRefTableSegmentCheck()
79 pRef->segmentState.parts.topIndex, sst.parts.topIndex); in dvmPopIndirectRefTableSegmentCheck()
82 if (sst.parts.numHoles >= sst.parts.topIndex) { in dvmPopIndirectRefTableSegmentCheck()
84 sst.parts.numHoles, sst.parts.topIndex); in dvmPopIndirectRefTableSegmentCheck()
89 pRef, pRef->kind, sst.parts.topIndex, sst.parts.numHoles); in dvmPopIndirectRefTableSegmentCheck()
146 int topIndex = pRef->segmentState.parts.topIndex; in dvmAddToIndirectRefTable() local
154 if (topIndex == pRef->allocEntries) { in dvmAddToIndirectRefTable()
156 if (topIndex == pRef->maxEntries) { in dvmAddToIndirectRefTable()
192 assert(topIndex > 1); in dvmAddToIndirectRefTable()
194 Object** pScan = &pRef->table[topIndex - 1]; in dvmAddToIndirectRefTable()
197 assert(pScan >= pRef->table + prevState.parts.topIndex); in dvmAddToIndirectRefTable()
206 updateSlotAdd(pRef, obj, topIndex); in dvmAddToIndirectRefTable()
207 result = dvmObjectToIndirectRef(pRef, obj, topIndex, pRef->kind); in dvmAddToIndirectRefTable()
208 pRef->table[topIndex++] = obj; in dvmAddToIndirectRefTable()
209 pRef->segmentState.parts.topIndex = topIndex; in dvmAddToIndirectRefTable()
228 int topIndex = pRef->segmentState.parts.topIndex; in dvmGetFromIndirectRefTableCheck() local
235 if (idx >= topIndex) { in dvmGetFromIndirectRefTableCheck()
238 idx, topIndex); in dvmGetFromIndirectRefTableCheck()
271 int topIndex = pRef->segmentState.parts.topIndex; in dvmRemoveFromIndirectRefTable() local
272 int bottomIndex = prevState.parts.topIndex; in dvmRemoveFromIndirectRefTable()
282 idx, bottomIndex, topIndex); in dvmRemoveFromIndirectRefTable()
285 if (idx >= topIndex) { in dvmRemoveFromIndirectRefTable()
288 idx, bottomIndex, topIndex); in dvmRemoveFromIndirectRefTable()
292 if (idx == topIndex-1) { in dvmRemoveFromIndirectRefTable()
308 while (--topIndex > bottomIndex && numHoles != 0) { in dvmRemoveFromIndirectRefTable()
310 topIndex-1, cookie, pRef->table[topIndex-1]); in dvmRemoveFromIndirectRefTable()
311 if (pRef->table[topIndex-1] != NULL) in dvmRemoveFromIndirectRefTable()
313 LOGV("+++ ate hole at %d\n", topIndex-1); in dvmRemoveFromIndirectRefTable()
318 pRef->segmentState.parts.topIndex = topIndex; in dvmRemoveFromIndirectRefTable()
320 pRef->segmentState.parts.topIndex = topIndex-1; in dvmRemoveFromIndirectRefTable()
321 LOGV("+++ ate last entry %d\n", topIndex-1); in dvmRemoveFromIndirectRefTable()