Home
last modified time | relevance | path

Searched refs:Strength (Results 1 – 25 of 59) sorted by relevance

123

/external/v8/benchmarks/
Ddeltablue.js101 function Strength(strengthValue, name) { class
106 Strength.stronger = function (s1, s2) {
110 Strength.weaker = function (s1, s2) {
114 Strength.weakestOf = function (s1, s2) {
118 Strength.strongest = function (s1, s2) {
122 Strength.prototype.nextWeaker = function () {
124 case 0: return Strength.STRONG_PREFERRED;
125 case 1: return Strength.PREFERRED;
126 case 2: return Strength.STRONG_DEFAULT;
127 case 3: return Strength.NORMAL;
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderFactory.java22 import com.google.common.cache.LocalCache.Strength;
48 private Set<Strength> keyStrengths = Sets.newHashSet((Strength) null);
49 private Set<Strength> valueStrengths = Sets.newHashSet((Strength) null);
81 CacheBuilderFactory withKeyStrengths(Set<Strength> keyStrengths) { in withKeyStrengths()
83 Preconditions.checkArgument(!this.keyStrengths.contains(Strength.SOFT)); in withKeyStrengths()
87 CacheBuilderFactory withValueStrengths(Set<Strength> valueStrengths) { in withValueStrengths()
107 (Strength) combination.get(6), in buildAllPermutations()
108 (Strength) combination.get(7)); in buildAllPermutations()
153 Strength keyStrength, Strength valueStrength) {
DCacheReferencesTest.java17 import static com.google.common.cache.LocalCache.Strength.STRONG;
22 import com.google.common.cache.LocalCache.Strength;
48 .withKeyStrengths(ImmutableSet.of(STRONG, Strength.WEAK)) in factoryWithAllKeyStrengths()
49 .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT)); in factoryWithAllKeyStrengths()
DCacheBuilderSpecTest.java23 import com.google.common.cache.LocalCache.Strength;
155 assertEquals(Strength.WEAK, spec.keyStrength); in testParse_weakKeys()
188 assertEquals(Strength.SOFT, spec.valueStrength); in testParse_softValues()
211 assertEquals(Strength.WEAK, spec.valueStrength); in testParse_weakValues()
401 assertEquals(Strength.WEAK, spec.keyStrength); in testParse_multipleKeys()
402 assertEquals(Strength.WEAK, spec.valueStrength); in testParse_multipleKeys()
425 assertEquals(Strength.WEAK, spec.keyStrength); in testParse_whitespaceAllowed()
426 assertEquals(Strength.SOFT, spec.valueStrength); in testParse_whitespaceAllowed()
DEmptyCachesTest.java25 import com.google.common.cache.LocalCache.Strength;
364 .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
365 .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
DPopulatedCachesTest.java26 import com.google.common.cache.LocalCache.Strength;
315 .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
316 .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
DLocalCacheTest.java42 import com.google.common.cache.LocalCache.Strength;
154 assertSame(Strength.STRONG, map.keyStrength); in testDefaults()
155 assertSame(Strength.STRONG, map.valueStrength); in testDefaults()
349 checkStrength(map, Strength.WEAK, Strength.STRONG); in testSetWeakKeys()
355 checkStrength(map, Strength.STRONG, Strength.WEAK); in testSetWeakValues()
361 checkStrength(map, Strength.STRONG, Strength.SOFT); in testSetSoftValues()
366 LocalCache<Object, Object> map, Strength keyStrength, Strength valueStrength) { in checkStrength()
417 EntryFactory.getFactory(Strength.STRONG, false, false)); in testEntryFactory()
419 EntryFactory.getFactory(Strength.STRONG, true, false)); in testEntryFactory()
421 EntryFactory.getFactory(Strength.STRONG, false, true)); in testEntryFactory()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCacheValue.java39 public enum Strength { enum in CacheValue
51 private static volatile Strength strength = Strength.SOFT;
59 public static void setStrength(Strength strength) { CacheValue.strength = strength; } in setStrength()
64 public static boolean futureInstancesWillBeStrong() { return strength == Strength.STRONG; } in futureInstancesWillBeStrong()
76 return strength == Strength.STRONG ? new StrongValue<V>(value) : new SoftValue<V>(value); in getInstance()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCacheValue.java41 public enum Strength { enum in CacheValue
53 private static volatile Strength strength = Strength.SOFT;
61 public static void setStrength(Strength strength) { CacheValue.strength = strength; } in setStrength()
66 public static boolean futureInstancesWillBeStrong() { return strength == Strength.STRONG; } in futureInstancesWillBeStrong()
78 return strength == Strength.STRONG ? new StrongValue<V>(value) : new SoftValue<V>(value); in getInstance()
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java20 import static com.google.common.collect.MapMakerInternalMap.Strength.SOFT;
30 import com.google.common.collect.MapMakerInternalMap.Strength;
120 Strength keyStrength;
121 Strength valueStrength;
265 return setKeyStrength(Strength.WEAK); in weakKeys()
268 MapMaker setKeyStrength(Strength strength) { in setKeyStrength()
272 if (strength != Strength.STRONG) { in setKeyStrength()
279 Strength getKeyStrength() { in getKeyStrength()
280 return MoreObjects.firstNonNull(keyStrength, Strength.STRONG); in getKeyStrength()
303 return setValueStrength(Strength.WEAK); in weakValues()
[all …]
DComputingConcurrentHashMap.java391 ComputingSerializationProxy(Strength keyStrength, Strength valueStrength, in ComputingSerializationProxy()
DMapMakerInternalMap.java162 final Strength keyStrength;
165 final Strength valueStrength;
282 return keyStrength != Strength.STRONG; in usesKeyReferences()
286 return valueStrength != Strength.STRONG; in usesValueReferences()
289 enum Strength { enum in MapMakerInternalMap
476 static EntryFactory getFactory(Strength keyStrength, boolean expireAfterWrite, in getFactory()
3900 final Strength keyStrength;
3901 final Strength valueStrength;
3912 AbstractSerializationProxy(Strength keyStrength, Strength valueStrength,
3985 SerializationProxy(Strength keyStrength, Strength valueStrength,
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DCacheTest.java15 import com.ibm.icu.impl.CacheValue.Strength;
39 CacheValue.setStrength(Strength.STRONG); in testStrongCacheValue()
50 CacheValue.setStrength(Strength.SOFT); in testStrongCacheValue()
58 CacheValue.setStrength(Strength.SOFT); in testSoftCacheValue()
67 CacheValue.setStrength(Strength.STRONG); in testSoftCacheValue()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/impl/
DCacheTest.java16 import android.icu.impl.CacheValue.Strength;
40 CacheValue.setStrength(Strength.STRONG); in testStrongCacheValue()
51 CacheValue.setStrength(Strength.SOFT); in testStrongCacheValue()
59 CacheValue.setStrength(Strength.SOFT); in testSoftCacheValue()
68 CacheValue.setStrength(Strength.STRONG); in testSoftCacheValue()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java34 import com.google.common.cache.LocalCache.Strength;
225 Strength keyStrength;
226 Strength valueStrength;
518 return setKeyStrength(Strength.WEAK); in weakKeys()
521 CacheBuilder<K, V> setKeyStrength(Strength strength) { in setKeyStrength()
527 Strength getKeyStrength() { in getKeyStrength()
528 return MoreObjects.firstNonNull(keyStrength, Strength.STRONG); in getKeyStrength()
549 return setValueStrength(Strength.WEAK); in weakValues()
573 return setValueStrength(Strength.SOFT); in softValues()
576 CacheBuilder<K, V> setValueStrength(Strength strength) { in setValueStrength()
[all …]
DCacheBuilderSpec.java26 import com.google.common.cache.LocalCache.Strength;
102 .put("weakKeys", new KeyStrengthParser(Strength.WEAK))
103 .put("softValues", new ValueStrengthParser(Strength.SOFT))
104 .put("weakValues", new ValueStrengthParser(Strength.WEAK))
116 @VisibleForTesting Strength keyStrength;
117 @VisibleForTesting Strength valueStrength;
365 private final Strength strength;
367 public KeyStrengthParser(Strength strength) { in KeyStrengthParser()
381 private final Strength strength;
383 public ValueStrengthParser(Strength strength) { in ValueStrengthParser()
DLocalCache.java184 final Strength keyStrength;
187 final Strength valueStrength;
365 return keyStrength != Strength.STRONG; in usesKeyReferences()
369 return valueStrength != Strength.STRONG; in usesValueReferences()
372 enum Strength { enum in LocalCache
566 static EntryFactory getFactory(Strength keyStrength, boolean usesAccessQueue, in getFactory()
568 int flags = ((keyStrength == Strength.WEAK) ? WEAK_MASK : 0) in getFactory()
4563 final Strength keyStrength;
4564 final Strength valueStrength;
4595 Strength keyStrength, Strength valueStrength,
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilder.java32 import com.google.common.cache.LocalCache.Strength;
219 Strength keyStrength;
220 Strength valueStrength;
356 CacheBuilder<K, V> setKeyStrength(Strength strength) { in setKeyStrength()
362 Strength getKeyStrength() { in getKeyStrength()
363 return MoreObjects.firstNonNull(keyStrength, Strength.STRONG); in getKeyStrength()
366 CacheBuilder<K, V> setValueStrength(Strength strength) { in setValueStrength()
372 Strength getValueStrength() { in getValueStrength()
373 return MoreObjects.firstNonNull(valueStrength, Strength.STRONG); in getValueStrength()
/external/llvm/test/Other/
Dopt-bisect-legacy-pass-manager.ll102 ; CHECK-LOOP-REDUCE: BISECT: running pass ({{[0-9]+}}) Loop Strength Reduction on loop
103 ; CHECK-LOOP-REDUCE: BISECT: running pass ({{[0-9]+}}) Loop Strength Reduction on loop
104 ; CHECK-LOOP-REDUCE: BISECT: running pass ({{[0-9]+}}) Loop Strength Reduction on loop
105 ; CHECK-LOOP-REDUCE: BISECT: running pass ({{[0-9]+}}) Loop Strength Reduction on loop
106 ; CHECK-LOOP-REDUCE: BISECT: running pass ({{[0-9]+}}) Loop Strength Reduction on loop
110 ; CHECK-NOT-LOOP-REDUCE: BISECT: NOT running pass ({{[0-9]+}}) Loop Strength Reduction on loop
111 ; CHECK-NOT-LOOP-REDUCE: BISECT: NOT running pass ({{[0-9]+}}) Loop Strength Reduction on loop
112 ; CHECK-NOT-LOOP-REDUCE: BISECT: NOT running pass ({{[0-9]+}}) Loop Strength Reduction on loop
113 ; CHECK-NOT-LOOP-REDUCE: BISECT: NOT running pass ({{[0-9]+}}) Loop Strength Reduction on loop
114 ; CHECK-NOT-LOOP-REDUCE: BISECT: NOT running pass ({{[0-9]+}}) Loop Strength Reduction on loop
/external/guava/guava-tests/test/com/google/common/collect/
DConcurrentHashMultisetTest.java19 import static com.google.common.collect.MapMakerInternalMap.Strength.STRONG;
20 import static com.google.common.collect.MapMakerInternalMap.Strength.WEAK;
372 MapMakerInternalMap.Strength keyStrength) {
411 MapMakerInternalMap.Strength keyStrength) {
DMapMakerInternalMapTest.java34 import com.google.common.collect.MapMakerInternalMap.Strength;
79 assertSame(Strength.STRONG, map.keyStrength); in testDefaults()
80 assertSame(Strength.STRONG, map.valueStrength); in testDefaults()
226 checkStrength(map, Strength.WEAK, Strength.STRONG); in testSetWeakKeys()
232 checkStrength(map, Strength.STRONG, Strength.WEAK); in testSetWeakValues()
238 checkStrength(map, Strength.STRONG, Strength.SOFT); in testSetSoftValues()
243 MapMakerInternalMap<Object, Object> map, Strength keyStrength, Strength valueStrength) { in checkStrength()
/external/llvm/test/CodeGen/Generic/
Dstop-after.ll5 ; STOP: Loop Strength Reduction
/external/swiftshader/third_party/LLVM/docs/HistoricalNotes/
D2001-06-01-GCCOptimizations.txt25 12. Strength Reduction
33 things to reimplement would be SSA based PRE, Strength reduction & loop
/external/llvm/docs/HistoricalNotes/
D2001-06-01-GCCOptimizations.txt25 12. Strength Reduction
33 things to reimplement would be SSA based PRE, Strength reduction & loop
/external/llvm/test/Feature/
Doptnone-opt.ll68 ; OPT-LOOP-DAG: Skipping pass 'Loop Strength Reduction'

123