Home | History | Annotate | Download | only in vm

Lines Matching refs:topIndex

65     size_t topIndex = segmentState.parts.topIndex;
82 assert(topIndex > 1);
84 * we know the item at the topIndex is not a hole */
85 slot = &table_[topIndex - 1];
88 assert(slot >= table_ + prevState.parts.topIndex);
93 if (topIndex == alloc_entries_) {
95 if (topIndex == max_entries_) {
123 slot = &table_[topIndex++];
124 segmentState.parts.topIndex = topIndex;
157 u4 topIndex = segmentState.parts.topIndex;
159 if (index >= topIndex) {
162 indirectRefKindToString(kind_), iref, index, topIndex);
186 static int findObject(const Object* obj, int bottomIndex, int topIndex,
188 for (int i = bottomIndex; i < topIndex; ++i) {
197 return findObject(obj, 0, segmentState.parts.topIndex, table_) >= 0;
217 u4 topIndex = segmentState.parts.topIndex;
218 u4 bottomIndex = prevState.parts.topIndex;
231 index, bottomIndex, topIndex);
234 if (index >= topIndex) {
237 index, bottomIndex, topIndex);
253 int i = findObject(reinterpret_cast<Object*>(iref), bottomIndex, topIndex, table_);
264 if (index == topIndex - 1) {
268 while (--topIndex > bottomIndex && numHoles != 0) {
270 topIndex-1, cookie, table_[topIndex-1].obj);
271 if (table_[topIndex-1].obj != NULL) {
274 ALOGV("+++ ate hole at %d", topIndex-1);
278 segmentState.parts.topIndex = topIndex;
280 segmentState.parts.topIndex = topIndex-1;
281 ALOGV("+++ ate last entry %d", topIndex-1);