Home
last modified time | relevance | path

Searched refs:Cache (Results 1 – 25 of 153) sorted by relevance

1234567

/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITObjectCacheTest.cpp126 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local
133 TheJIT->setObjectCache(Cache.get()); in TEST_F()
136 const MemoryBuffer *ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F()
142 EXPECT_TRUE(Cache->wasModuleLookedUp(SavedModulePointer)); in TEST_F()
145 ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F()
149 EXPECT_FALSE(Cache->wereDuplicatesInserted()); in TEST_F()
155 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local
159 TheJIT->setObjectCache(Cache.get()); in TEST_F()
176 TheJIT->setObjectCache(Cache.get()); in TEST_F()
180 EXPECT_TRUE(Cache->wasModuleLookedUp(SecondModulePointer)); in TEST_F()
[all …]
/external/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp714 static void AssertSorted(MemoryDependenceAnalysis::NonLocalDepInfo &Cache, in AssertSorted() argument
716 if (Count == -1) Count = Cache.size(); in AssertSorted()
720 assert(!(Cache[i] < Cache[i-1]) && "Cache isn't sorted!"); in AssertSorted()
741 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local
749 if (!Cache.empty()) { in getNonLocalCallDependency()
754 return Cache; in getNonLocalCallDependency()
759 for (NonLocalDepInfo::iterator I = Cache.begin(), E = Cache.end(); in getNonLocalCallDependency()
765 std::sort(Cache.begin(), Cache.end()); in getNonLocalCallDependency()
783 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency()
784 DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_dense_alloc.h39 typedef DenseSlabAllocCache Cache; typedef
40 typedef typename Cache::IndexT IndexT;
61 IndexT Alloc(Cache *c) { in Alloc()
67 void Free(Cache *c, IndexT idx) { in Free()
69 if (c->pos == Cache::kSize) in Free()
80 void FlushCache(Cache *c) { in FlushCache()
89 void InitCache(Cache *c) { in InitCache()
100 void Refill(Cache *c) { in Refill()
118 for (uptr i = 0; i < Cache::kSize / 2 && freelist_ != 0; i++) { in Refill()
125 void Drain(Cache *c) { in Drain()
[all …]
/external/compiler-rt/test/tsan/
Dstatic_init2.cc6 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()
Dstatic_init5.cc7 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()
Dstatic_init6.cc7 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()
Dstatic_init3.cc7 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()
Dstatic_init4.cc7 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/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/
DAndroidShimResponseCache.java36 private final Cache delegate;
38 private AndroidShimResponseCache(Cache delegate) { in AndroidShimResponseCache()
43 Cache cache = new Cache(directory, maxSize); in create()
48 Cache installedCache = getCache(); in isEquivalent()
54 public Cache getCache() { in getCache()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheTesting.java65 static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) { in simulateValueReclamation()
84 static <K, V> void simulateKeyReclamation(Cache<K, V> cache, K key) { in simulateKeyReclamation()
94 static <K, V> ReferenceEntry<K, V> getReferenceEntry(Cache<K, V> cache, K key) { in getReferenceEntry()
105 static <K, V> void forceExpandSegment(Cache<K, V> cache, K key) { in forceExpandSegment()
118 static <K, V> LocalCache<K, V> toLocalCache(Cache<K, V> cache) { in toLocalCache()
130 static boolean hasLocalCache(Cache<?, ?> cache) { in hasLocalCache() argument
134 static void drainRecencyQueues(Cache<?, ?> cache) { in drainRecencyQueues() argument
152 static void drainReferenceQueues(Cache<?, ?> cache) { in drainReferenceQueues() argument
173 static int getTotalSegmentSize(Cache<?, ?> cache) { in getTotalSegmentSize() argument
188 static void checkValidState(Cache<?, ?> cache) { in checkValidState() argument
[all …]
DCacheBuilderGwtTest.java57 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testLoader()
84 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testSizeConstraint()
137 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpireAfterAccess()
154 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpireAfterWrite()
181 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpireAfterWriteAndAccess()
212 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testMapMethods()
279 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testRemovalListener()
318 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testPutAll()
336 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testInvalidate()
351 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testInvalidateAll()
[all …]
DForwardingCacheTest.java37 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/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
Dcmsxform.c382 _cmsCACHE Cache; in CachedXFORM() local
393 memcpy(&Cache, &p ->Cache, sizeof(Cache)); in CachedXFORM()
399 if (memcmp(wIn, Cache.CacheIn, sizeof(Cache.CacheIn)) == 0) { in CachedXFORM()
401 memcpy(wOut, Cache.CacheOut, sizeof(Cache.CacheOut)); in CachedXFORM()
407 memcpy(Cache.CacheIn, wIn, sizeof(Cache.CacheIn)); in CachedXFORM()
408 memcpy(Cache.CacheOut, wOut, sizeof(Cache.CacheOut)); in CachedXFORM()
427 _cmsCACHE Cache; in CachedXFORMGamutCheck() local
438 memcpy(&Cache, &p ->Cache, sizeof(Cache)); in CachedXFORMGamutCheck()
444 if (memcmp(wIn, Cache.CacheIn, sizeof(Cache.CacheIn)) == 0) { in CachedXFORMGamutCheck()
445 memcpy(wOut, Cache.CacheOut, sizeof(Cache.CacheOut)); in CachedXFORMGamutCheck()
[all …]
/external/guava/guava/src/com/google/common/cache/
DForwardingCache.java40 public abstract class ForwardingCache<K, V> extends ForwardingObject implements Cache<K, V> {
46 protected abstract Cache<K, V> delegate(); in delegate()
135 private final Cache<K, V> delegate;
137 protected SimpleForwardingCache(Cache<K, V> delegate) { in SimpleForwardingCache()
142 protected final Cache<K, V> delegate() { in delegate()
/external/skia/include/core/
DSkImageFilter.h56 class Cache : public SkRefCnt {
59 virtual ~Cache() {} in ~Cache()
60 static Cache* Create(size_t maxBytes);
61 static Cache* Get();
68 Context(const SkMatrix& ctm, const SkIRect& clipBounds, Cache* cache) : in Context()
73 Cache* cache() const { return fCache; } in cache()
77 Cache* fCache;
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_quarantine.h45 typedef QuarantineCache<Callback> Cache; typedef
60 void Put(Cache *c, Callback cb, Node *ptr, uptr size) { in Put()
66 void NOINLINE Drain(Cache *c, Callback cb) { in Drain()
84 Cache cache_;
88 Cache tmp; in Recycle()
101 void NOINLINE DoRecycle(Cache *c, Callback cb) { in DoRecycle()
/external/llvm/lib/Support/
DSourceMgr.cpp41 if (LineNoCacheTy *Cache = getCache(LineNoCache)) in ~SourceMgr() local
42 delete Cache; in ~SourceMgr()
94 if (LineNoCacheTy *Cache = getCache(LineNoCache)) in getLineAndColumn() local
95 if (Cache->LastQueryBufferID == BufferID && in getLineAndColumn()
96 Cache->LastQuery <= Loc.getPointer()) { in getLineAndColumn()
97 Ptr = Cache->LastQuery; in getLineAndColumn()
98 LineNo = Cache->LineNoOfQuery; in getLineAndColumn()
111 LineNoCacheTy &Cache = *getCache(LineNoCache); in getLineAndColumn() local
112 Cache.LastQueryBufferID = BufferID; in getLineAndColumn()
113 Cache.LastQuery = Ptr; in getLineAndColumn()
[all …]
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_dense_alloc_test.cc26 typedef Alloc::Cache Cache; in TEST() typedef
31 Cache cache; in TEST()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DCacheResponse.java18 import com.squareup.okhttp.Cache;
30 Cache cache = new Cache(cacheDirectory, cacheSize); in CacheResponse()
DRewriteResponseCacheControl.java18 import com.squareup.okhttp.Cache;
40 Cache cache = new Cache(cacheDirectory, 1024 * 1024); in RewriteResponseCacheControl()
/external/javassist/src/main/javassist/
DCtClassType.java138 CtMember.Cache memCache = getMembers(); in extendToString()
799 CtMember.Cache cache = hasMemberCache(); in nameReplaced()
813 protected CtMember.Cache hasMemberCache() { in hasMemberCache()
815 return (CtMember.Cache)memberCache.get(); in hasMemberCache()
820 protected synchronized CtMember.Cache getMembers() { in getMembers()
821 CtMember.Cache cache = null; in getMembers()
823 || (cache = (CtMember.Cache)memberCache.get()) == null) { in getMembers()
824 cache = new CtMember.Cache(this); in getMembers()
833 private void makeFieldCache(CtMember.Cache cache) { in makeFieldCache()
843 private void makeBehaviorCache(CtMember.Cache cache) { in makeBehaviorCache()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java131 public final class Cache { class
139 return Cache.this.get(request);
142 return Cache.this.put(response);
145 Cache.this.remove(request);
148 Cache.this.update(cached, network);
151 Cache.this.trackConditionalCacheHit();
154 Cache.this.trackResponse(cacheStrategy);
167 public Cache(File directory, long maxSize) { in Cache() method in Cache
413 synchronized (Cache.this) { in CacheRequestImpl()
427 synchronized (Cache.this) { in abort()
/external/doclava/src/com/google/doclava/
DConverter.java274 private static Cache mClasses = new Cache() {
394 private static Cache mMethods = new Cache() {
480 private static Cache mFields = new Cache() {
498 private static Cache mPackagees = new Cache() {
510 private static Cache mTypes = new Cache() {
592 private static final Cache mTypesFromString = new Cache() {
614 private static Cache mMembers = new Cache() {
643 private static Cache mAnnotationInstances = new Cache() {
659 private abstract static class Cache { class in Converter
/external/skia/src/core/
DSkImageFilter.cpp44 struct SkImageFilter::Cache::Key {
178 Cache::Key key(fUniqueID, context.ctm(), context.clipBounds(), srcGenID); in filterImage()
419 class CacheImpl : public SkImageFilter::Cache {
492 SkImageFilter::Cache* CreateCache() { in CreateCache()
493 return SkImageFilter::Cache::Create(kDefaultCacheSize); in CreateCache()
498 SkImageFilter::Cache* SkImageFilter::Cache::Create(size_t maxBytes) { in Create()
502 SK_DECLARE_STATIC_LAZY_PTR(SkImageFilter::Cache, cache, CreateCache);
504 SkImageFilter::Cache* SkImageFilter::Cache::Get() { in Get()
/external/clang/lib/Basic/
DFileSystemStatCache.cpp56 FileSystemStatCache *Cache, vfs::FileSystem &FS) { in get() argument
61 if (Cache) in get()
62 R = Cache->getStat(Path, Data, isFile, F, FS); in get()

1234567