Home
last modified time | relevance | path

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

1234567891011

/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITObjectCacheTest.cpp124 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local
131 TheJIT->setObjectCache(Cache.get()); in TEST_F()
134 const MemoryBuffer *ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F()
140 EXPECT_TRUE(Cache->wasModuleLookedUp(SavedModulePointer)); in TEST_F()
143 ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F()
147 EXPECT_FALSE(Cache->wereDuplicatesInserted()); in TEST_F()
153 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local
157 TheJIT->setObjectCache(Cache.get()); in TEST_F()
174 TheJIT->setObjectCache(Cache.get()); in TEST_F()
178 EXPECT_TRUE(Cache->wasModuleLookedUp(SecondModulePointer)); in TEST_F()
[all …]
/external/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp792 static void AssertSorted(MemoryDependenceAnalysis::NonLocalDepInfo &Cache, in AssertSorted() argument
794 if (Count == -1) Count = Cache.size(); in AssertSorted()
798 assert(!(Cache[i] < Cache[i-1]) && "Cache isn't sorted!"); in AssertSorted()
819 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local
827 if (!Cache.empty()) { in getNonLocalCallDependency()
832 return Cache; in getNonLocalCallDependency()
837 for (NonLocalDepInfo::iterator I = Cache.begin(), E = Cache.end(); in getNonLocalCallDependency()
843 std::sort(Cache.begin(), Cache.end()); in getNonLocalCallDependency()
861 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency()
862 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/skia/tests/
DImageFilterCacheTest.cpp33 SkAutoTUnref<SkImageFilter::Cache> cache(SkImageFilter::Cache::Create(kCacheSize)); in test_find_existing()
36 SkImageFilter::Cache::Key key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing()
37 SkImageFilter::Cache::Key key2(0, SkMatrix::I(), clip, subset->uniqueID(), subset->subset()); in test_find_existing()
57 SkAutoTUnref<SkImageFilter::Cache> cache(SkImageFilter::Cache::Create(kCacheSize)); in test_dont_find_if_diff_key()
61 SkImageFilter::Cache::Key key0(0, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
62 SkImageFilter::Cache::Key key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
63 SkImageFilter::Cache::Key key2(0, SkMatrix::MakeTrans(5, 5), clip1, in test_dont_find_if_diff_key()
65 SkImageFilter::Cache::Key key3(0, SkMatrix::I(), clip2, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
66 SkImageFilter::Cache::Key key4(0, SkMatrix::I(), clip1, subset->uniqueID(), subset->subset()); in test_dont_find_if_diff_key()
82 SkAutoTUnref<SkImageFilter::Cache> cache(SkImageFilter::Cache::Create(kCacheSize)); in test_internal_purge()
[all …]
/external/compiler-rt/test/tsan/
Dstatic_init2.cc6 struct Cache { struct
8 explicit Cache(int x) in Cache() argument
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() 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()
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_init6.cc7 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()
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/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/third_party/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/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/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.h39 class Cache : public SkRefCnt {
42 virtual ~Cache() {} in ~Cache()
43 static Cache* Create(size_t maxBytes);
44 static Cache* Get();
55 Context(const SkMatrix& ctm, const SkIRect& clipBounds, Cache* cache) in Context()
63 Cache* cache() const { return fCache; } in cache()
68 Cache* fCache;
458 mutable SkTArray<Cache::Key> fCacheKeys;
/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/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
171 Cache(File directory, long maxSize, FileSystem fileSystem) { in Cache() method in Cache
434 synchronized (Cache.this) { in CacheRequestImpl()
[all …]
/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/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DRewriteResponseCacheControl.java18 import com.squareup.okhttp.Cache;
40 Cache cache = new Cache(cacheDirectory, 1024 * 1024); in RewriteResponseCacheControl()
DCacheResponse.java18 import com.squareup.okhttp.Cache;
30 Cache cache = new Cache(cacheDirectory, cacheSize); in CacheResponse()
/external/doclava/src/com/google/doclava/
DConverter.java275 private static Cache mClasses = new Cache() {
395 private static Cache mMethods = new Cache() {
496 private static Cache mFields = new Cache() {
514 private static Cache mPackagees = new Cache() {
526 private static Cache mTypes = new Cache() {
608 private static final Cache mTypesFromString = new Cache() {
630 private static Cache mMembers = new Cache() {
659 private static Cache mAnnotationInstances = new Cache() {
675 private abstract static class Cache { class in Converter
/external/clang/lib/Basic/
DFileSystemStatCache.cpp45 FileSystemStatCache *Cache, vfs::FileSystem &FS) { in get() argument
50 if (Cache) in get()
51 R = Cache->getStat(Path, Data, isFile, F, FS); in get()

1234567891011