Lines Matching refs:cache
43 OSObject *cache[numStrCache], *str, *sym;
54 cache[i] = (OSObject *) OSSymbol::withCStringNoCopy(strCache[i]);
56 cache[i]->release();
71 cache[0] = IOString::withCStringNoCopy(strCache[0]);
74 TEST_ASSERT('A', "1h", array1->setObject(cache[0]));
75 TEST_ASSERT('A', "1i", cache[0] == array1->getObject(0));
76 cache[0]->release();
92 cache[i] = OSString::withCStringNoCopy(strCache[i]);
93 array1 = OSArray::withObjects(cache, numStrCache, numStrCache);
96 cache[i]->release();
104 if (str != cache[i]) {
119 cache[i] = OSString::withCStringNoCopy(strCache[i]);
120 array1 = OSArray::withObjects(cache, numStrCache, numStrCache);
123 cache[i]->release();
136 if (str != cache[i]) {
165 count += (str == cache[i]);
281 OSObject *cache[numStrCache], *str, *sym;
293 cache[i] = (OSObject *) OSSymbol::withCStringNoCopy(strCache[i]);
295 cache[i]->release();
310 cache[0] = IOString::withCStringNoCopy(strCache[0]);
313 TEST_ASSERT('S', "1h", set1->setObject(cache[0]));
314 TEST_ASSERT('S', "1i", set1->containsObject(cache[0]));
315 TEST_ASSERT('S', "1j", cache[0] == set1->getAnyObject());
316 cache[0]->release();
332 cache[i] = OSString::withCStringNoCopy(strCache[i]);
333 set1 = OSSet::withObjects(cache, numStrCache, numStrCache);
336 cache[i]->release();
345 count += set1->member(cache[i]);
357 cache[i] = OSString::withCStringNoCopy(strCache[i]);
358 set1 = OSSet::withObjects(cache, numStrCache, numStrCache);
361 cache[i]->release();
401 count2 += (cache[i++] == str);
485 OSObject *cache[numStrCache];
580 cache[numSymbols] = OSString::withCStringNoCopy(strCache[i]);
588 (OSString **) cache,
594 count2 += (cache[i]->getRetainCount() == 1);
601 str = (OSString *) cache[i];
610 const char *cStr = ((OSString *) cache[i])->getCStringNoCopy();
623 count2 += (cache[i]->getRetainCount() == 1);
625 cache[i]->release();
637 cache[numSymbols] = OSString::withCStringNoCopy(strCache[i]);
674 str = (OSString *) cache[i];
687 str = (OSString *) cache[i];
712 OSObject *cache[numStrCache];
725 cache[numSymbols] = OSString::withCStringNoCopy(strCache[i]);
741 count1 += array->setObject(cache[i], 0);
754 count2 += (cache[i] == bigReturn->getObject(0));
755 count3 += (cache[i] == str);
782 count1 += (cache[i] == str);
804 count1 += set->setObject(cache[i]);
817 count2 += (cache[i] == bigReturn->getObject(0));
818 count3 += (cache[i] == str);
838 count1 += (cache[i] == str);
868 count1 += (0 != dict->setObject(cache[i], symCache[i]));
881 count2 += (cache[i] == bigReturn->getObject(1));
909 count2 += (!str || cache[i] == str);
933 count1 += (1 == cache[i]->getRetainCount());
935 cache[i]->release();