/external/chromium_org/base/containers/ |
D | mru_cache_unittest.cc | 36 typedef base::MRUCache<int, CachedItem> Cache; in TEST() typedef 37 Cache cache(Cache::NO_AUTO_EVICT); in TEST() 48 Cache::iterator inserted_item = cache.Put(kItem1Key, item1); in TEST() 53 Cache::iterator found = cache.Get(kItem1Key); in TEST() 71 Cache::reverse_iterator oldest = cache.rbegin(); in TEST() 79 Cache::iterator test_item = cache.Get(kItem1Key); in TEST() 87 Cache::reverse_iterator oldest = cache.rbegin(); in TEST() 95 Cache::reverse_iterator next = cache.Erase(cache.rbegin()); in TEST() 116 typedef base::MRUCache<int, CachedItem> Cache; in TEST() typedef 117 Cache cache(Cache::NO_AUTO_EVICT); in TEST() [all …]
|
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITObjectCacheTest.cpp | 136 OwningPtr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local 143 TheJIT->setObjectCache(Cache.get()); in TEST_F() 146 const MemoryBuffer *ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F() 152 EXPECT_TRUE(Cache->wasModuleLookedUp(SavedModulePointer)); in TEST_F() 155 ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F() 159 EXPECT_FALSE(Cache->wereDuplicatesInserted()); in TEST_F() 165 OwningPtr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local 169 TheJIT->setObjectCache(Cache.get()); in TEST_F() 186 TheJIT->setObjectCache(Cache.get()); in TEST_F() 190 EXPECT_TRUE(Cache->wasModuleLookedUp(SecondModulePointer)); in TEST_F() [all …]
|
/external/llvm/lib/IR/ |
D | LeaksContext.h | 33 Cache(0), Name(name) { } 36 Cache = 0; 51 if (Cache) { 52 assert(Cache != o && "Object already in set!"); 53 Ts.insert(Cache); 55 Cache = o; 59 if (o == Cache) 60 Cache = 0; // Cache hit 68 assert(Cache == 0 && "No value should be cached anymore!"); 88 const T* Cache;
|
/external/chromium_org/third_party/leveldatabase/src/include/leveldb/ |
D | cache.h | 26 class Cache; variable 30 extern Cache* NewLRUCache(size_t capacity); 32 class Cache { 34 Cache() { } in Cache() function 38 virtual ~Cache(); 93 Cache(const Cache&); 94 void operator=(const Cache&);
|
/external/chromium_org/chrome/browser/resources/image_loader/ |
D | cache.js | 11 function Cache() { class 25 Cache.DB_NAME = 'image-loader'; 32 Cache.DB_VERSION = 11; 40 Cache.MEMORY_LIMIT = 250 * 1024 * 1024; // 250 MB. 49 Cache.EVICTION_CHUNK_SIZE = 50 * 1024 * 1024; // 50 MB. 57 Cache.createKey = function(request) { 70 Cache.prototype.initialize = function(callback) { 74 var openRequest = window.webkitIndexedDB.open(Cache.DB_NAME, 75 Cache.DB_VERSION); 107 Cache.prototype.setCacheSize_ = function(size, opt_transaction) { [all …]
|
D | image_loader_client.js | 36 this.cache_ = new ImageLoaderClient.Cache(); 158 var cacheKey = ImageLoaderClient.Cache.createKey(url, opt_options); 212 ImageLoaderClient.Cache = function() { class in ImageLoaderClient 223 ImageLoaderClient.Cache.MEMORY_LIMIT = 20 * 1024 * 1024; // 20 MB. 232 ImageLoaderClient.Cache.createKey = function(url, opt_options) { 249 ImageLoaderClient.Cache.prototype.evictCache_ = function(size) { 256 (ImageLoaderClient.Cache.MEMORY_LIMIT - this.size_ < size)) { 270 ImageLoaderClient.Cache.prototype.saveImage = function( 276 if (ImageLoaderClient.Cache.MEMORY_LIMIT - this.size_ < data.length) { 283 if (ImageLoaderClient.Cache.MEMORY_LIMIT - this.size_ >= data.length) { [all …]
|
/external/llvm/lib/Analysis/ |
D | MemoryDependenceAnalysis.cpp | 605 static void AssertSorted(MemoryDependenceAnalysis::NonLocalDepInfo &Cache, in AssertSorted() argument 607 if (Count == -1) Count = Cache.size(); in AssertSorted() 611 assert(!(Cache[i] < Cache[i-1]) && "Cache isn't sorted!"); in AssertSorted() 632 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local 640 if (!Cache.empty()) { in getNonLocalCallDependency() 645 return Cache; in getNonLocalCallDependency() 650 for (NonLocalDepInfo::iterator I = Cache.begin(), E = Cache.end(); in getNonLocalCallDependency() 656 std::sort(Cache.begin(), Cache.end()); in getNonLocalCallDependency() 674 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency() 675 DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency() [all …]
|
/external/compiler-rt/lib/tsan/lit_tests/ |
D | static_init2.cc | 6 struct Cache { struct 8 explicit Cache(int x) in Cache() function 13 void foo(Cache *my) { in foo() 14 static Cache *c = my ? my : new Cache(rand()); in foo() 20 foo(new Cache(rand())); in Thread()
|
D | static_init5.cc | 7 struct Cache { struct 9 explicit Cache(int x) in Cache() function 15 return new Cache((int)(long)p); in AsyncInit() 18 Cache *CreateCache() { in CreateCache() 23 return (Cache*)res; in CreateCache() 27 static Cache *c = CreateCache(); in Thread1()
|
D | static_init6.cc | 7 struct Cache { struct 9 explicit Cache(int x) in Cache() argument 15 return new Cache((int)(long)p); in AsyncInit() 18 Cache *CreateCache() { in CreateCache() 23 return (Cache*)res; in CreateCache() 27 static Cache *c = CreateCache(); in Thread1()
|
D | static_init3.cc | 7 struct Cache { struct 11 Cache g_cache; argument 13 Cache *CreateCache() { in CreateCache() 18 _Atomic(Cache*) queue; 21 static Cache *c = CreateCache(); in Thread1() 27 Cache *c = 0; in Thread2()
|
D | static_init4.cc | 7 struct Cache { struct 9 explicit Cache(int x) in Cache() argument 16 Cache *CreateCache() { in CreateCache() 18 return new Cache(rand()); in CreateCache() 22 static Cache *c = CreateCache(); in Thread1()
|
/external/chromium_org/third_party/WebKit/Source/core/svg/properties/ |
D | SVGAnimatedProperty.cpp | 47 Cache* cache = animatedPropertyCache(); in detachAnimatedPropertiesForElement() 51 const Cache::const_iterator end = cache->end(); in detachAnimatedPropertiesForElement() 52 for (Cache::const_iterator it = cache->begin(); it != end; ++it) { in detachAnimatedPropertiesForElement() 76 SVGAnimatedProperty::Cache* SVGAnimatedProperty::animatedPropertyCache() in animatedPropertyCache() 78 static Cache* s_cache = new Cache; in animatedPropertyCache()
|
/external/chromium_org/third_party/leveldatabase/src/db/ |
D | table_cache.cc | 27 Cache* cache = reinterpret_cast<Cache*>(arg1); in UnrefEntry() 28 Cache::Handle* h = reinterpret_cast<Cache::Handle*>(arg2); in UnrefEntry() 46 Cache::Handle** handle) { in FindTable() 90 Cache::Handle* handle = NULL; in NewIterator() 111 Cache::Handle* handle = NULL; in Get()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheTesting.java | 64 static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) { in simulateValueReclamation() 83 static <K, V> void simulateKeyReclamation(Cache<K, V> cache, K key) { in simulateKeyReclamation() 93 static <K, V> ReferenceEntry<K, V> getReferenceEntry(Cache<K, V> cache, K key) { in getReferenceEntry() 102 static <K, V> void forceExpandSegment(Cache<K, V> cache, K key) { in forceExpandSegment() 113 static <K, V> LocalCache<K, V> toLocalCache(Cache<K, V> cache) { in toLocalCache() 125 static boolean hasLocalCache(Cache<?, ?> cache) { in hasLocalCache() argument 129 static void drainRecencyQueues(Cache<?, ?> cache) { in drainRecencyQueues() argument 147 static void drainReferenceQueues(Cache<?, ?> cache) { in drainReferenceQueues() argument 168 static int getTotalSegmentSize(Cache<?, ?> cache) { in getTotalSegmentSize() argument 183 static void checkValidState(Cache<?, ?> cache) { in checkValidState() argument [all …]
|
D | ForwardingCacheTest.java | 37 private Cache<String, Boolean> forward; 38 private Cache<String, Boolean> mock; 48 mock = createMock(Cache.class); in setUp() 50 @Override protected Cache<String, Boolean> delegate() { in setUp() 126 protected Cache<K, V> delegate() { in delegate()
|
/external/chromium_org/third_party/leveldatabase/src/util/ |
D | cache.cc | 16 Cache::~Cache() { in ~Cache() 144 Cache::Handle* Insert(const Slice& key, uint32_t hash, 147 Cache::Handle* Lookup(const Slice& key, uint32_t hash); 148 void Release(Cache::Handle* handle); 209 Cache::Handle* LRUCache::Lookup(const Slice& key, uint32_t hash) { in Lookup() 217 return reinterpret_cast<Cache::Handle*>(e); in Lookup() 220 void LRUCache::Release(Cache::Handle* handle) { in Release() 225 Cache::Handle* LRUCache::Insert( in Insert() 255 return reinterpret_cast<Cache::Handle*>(e); in Insert() 270 class ShardedLRUCache : public Cache { [all …]
|
/external/oprofile/events/mips/25K/ |
D | events | 48 # I-Cache Efficiency: 50 … minimum:500 name:INSNS_FETCHED_FROM_ICACHE : Total number of instructions fetched from the I-Cache 52 event:0x1a counters:0,1 um:zero minimum:500 name:ICACHE_MISSES : I-Cache miss 55 # D-Cache Efficiency: 57 event:0x1b counters:0,1 um:zero minimum:500 name:DCACHE_MISSES : D-Cache miss 58 event:0x1c counters:0,1 um:zero minimum:500 name:DCACHE_WRITEBACKS : D-Cache number of write-backs 59 …ers:0,1 um:zero minimum:500 name:CACHEABLE_DCACHE_REQUEST : number of cacheable requests to D-Cache 62 # Level 2 Cache Efficiency: 64 event:0x1e counters:0,1 um:zero minimum:500 name:L2_MISSES : L2 Cache miss 65 event:0x1f counters:0,1 um:zero minimum:500 name:L2_WBACKS : L2 Cache number of write-backs [all …]
|
/external/guava/guava/src/com/google/common/cache/ |
D | ForwardingCache.java | 39 public abstract class ForwardingCache<K, V> extends ForwardingObject implements Cache<K, V> { 45 protected abstract Cache<K, V> delegate(); in delegate() 144 private final Cache<K, V> delegate; 146 protected SimpleForwardingCache(Cache<K, V> delegate) { in SimpleForwardingCache() 151 protected final Cache<K, V> delegate() { in delegate()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_quarantine.h | 43 typedef QuarantineCache<Callback> Cache; typedef 55 void Put(Cache *c, Callback cb, Node *ptr, uptr size) { in Put() 61 void NOINLINE Drain(Cache *c, Callback cb) { in Drain() 79 Cache cache_; 83 Cache tmp; in Recycle() 95 void NOINLINE DoRecycle(Cache *c, Callback cb) { in DoRecycle()
|
/external/llvm/lib/Support/ |
D | SourceMgr.cpp | 43 if (LineNoCacheTy *Cache = getCache(LineNoCache)) in ~SourceMgr() local 44 delete Cache; in ~SourceMgr() 105 if (LineNoCacheTy *Cache = getCache(LineNoCache)) in getLineAndColumn() local 106 if (Cache->LastQueryBufferID == BufferID && in getLineAndColumn() 107 Cache->LastQuery <= Loc.getPointer()) { in getLineAndColumn() 108 Ptr = Cache->LastQuery; in getLineAndColumn() 109 LineNo = Cache->LineNoOfQuery; in getLineAndColumn() 122 LineNoCacheTy &Cache = *getCache(LineNoCache); in getLineAndColumn() local 123 Cache.LastQueryBufferID = BufferID; in getLineAndColumn() 124 Cache.LastQuery = Ptr; in getLineAndColumn() [all …]
|
/external/oprofile/events/ia64/itanium2/ |
D | events | 57 # IA64_2 L1 Instruction Cache and Prefetch Events, Table 11-8 62 event:0x41 counters:0,1,2,3 um:zero minimum:5000 name:L1I_FILLS : L1 Instruction Cache Fills 64 event:0x42 counters:0,1,2,3 um:zero minimum:5000 name:L2_INST_DEMAND_READS : L1 Instruction Cache a… 70 event:0x40 counters:0,1,2,3 um:zero minimum:5000 name:L1I_READS : L1 Instruction Cache Read 72 event:0x5f counters:0,1,2,3 um:zero minimum:5000 name:L1I_STRM_PREFETCHES : L1 Instruction Cache li… 75 # IA64_2 L1 Data Cache Events, Table 11-10 76 event:0xc8 counters:0,1,2,3 um:zero minimum:5000 name:DATA_EAR_EVENTS : Data Cache EAR Events 78 #event:0xc2 counters:0,1,2,3 um:zero minimum:5000 name:L1D_READS_SET0 : L1 Data Cache Reads 80 #event:0xc4 counters:0,1,2,3 um:zero minimum:5000 name:L1D_READS_SET1 : L1 Data Cache Reads 82 #event:0xc7 counters:0,1,2,3 um:l1d_read_misses minimum:5000 name:L1D_READ_MISSES : L1 Data Cache R… [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
D | FontDataCache.cpp | 53 Cache::iterator result = m_cache.find(*platformData); in get() 87 Cache::iterator it = m_cache.find(fontData->platformData()); in release() 100 Cache::iterator end = m_cache.end(); in markAllVerticalData() 101 for (Cache::iterator fontData = m_cache.begin(); fontData != end; ++fontData) { in markAllVerticalData()
|
/external/clang/include/clang/Basic/ |
D | FileSystemStatCache.h | 63 int *FileDescriptor, FileSystemStatCache *Cache); 67 void setNextStatCache(FileSystemStatCache *Cache) { in setNextStatCache() argument 68 NextStatCache.reset(Cache); in setNextStatCache()
|
/external/smack/src/org/xbill/DNS/ |
D | Lookup.java | 36 private Cache cache; 124 public static synchronized Cache 127 Cache c = (Cache) defaultCaches.get(Mnemonic.toInteger(dclass)); in getDefaultCache() 129 c = new Cache(dclass); in getDefaultCache() 142 setDefaultCache(Cache cache, int dclass) { in setDefaultCache() 348 setCache(Cache cache) { in setCache() 350 this.cache = new Cache(dclass); in setCache()
|