/external/v8/src/wasm/ |
D | wasm-subtyping.h | 17 ValueType subtype, ValueType supertype, const WasmModule* sub_module, 56 V8_INLINE bool IsSubtypeOf(ValueType subtype, ValueType supertype, in IsSubtypeOf() argument 59 if (subtype == supertype && sub_module == super_module) return true; in IsSubtypeOf() 60 return IsSubtypeOfImpl(subtype, supertype, sub_module, super_module); in IsSubtypeOf() 64 V8_INLINE bool IsSubtypeOf(ValueType subtype, ValueType supertype, in IsSubtypeOf() argument 67 if (V8_LIKELY(subtype == supertype)) return true; in IsSubtypeOf() 68 return IsSubtypeOfImpl(subtype, supertype, module, module); in IsSubtypeOf()
|
D | wasm-subtyping.cc | 45 bool is_cached_subtype(uint32_t subtype, uint32_t supertype, in is_cached_subtype() argument 49 subtype, supertype, sub_module, super_module)) == 1; in is_cached_subtype() 51 void cache_subtype(uint32_t subtype, uint32_t supertype, in cache_subtype() argument 54 subtyping_cache_.emplace(subtype, supertype, sub_module, super_module); in cache_subtype() 56 void uncache_subtype(uint32_t subtype, uint32_t supertype, in uncache_subtype() argument 60 std::make_tuple(subtype, supertype, sub_module, super_module)); in uncache_subtype() 274 ValueType subtype, ValueType supertype, const WasmModule* sub_module, in IsSubtypeOfImpl() argument 276 DCHECK(subtype != supertype || sub_module != super_module); in IsSubtypeOfImpl() 280 if (!subtype.is_reference_type()) return subtype == supertype; in IsSubtypeOfImpl() 284 ? subtype == supertype in IsSubtypeOfImpl() [all …]
|
/external/guava/guava/src/com/google/common/reflect/ |
D | TypeToken.java | 273 TypeToken<?> supertype = of(getCovariantTypeResolver().resolveType(type)); in resolveSupertype() local 275 supertype.covariantTypeResolver = covariantTypeResolver; in resolveSupertype() 276 supertype.invariantTypeResolver = invariantTypeResolver; in resolveSupertype() 277 return supertype; in resolveSupertype() 397 TypeToken<? super T> supertype = in getSupertype() local 399 return supertype; in getSupertype() 472 public final boolean isSubtypeOf(Type supertype) { in isSubtypeOf() argument 473 checkNotNull(supertype); in isSubtypeOf() 474 if (supertype instanceof WildcardType) { in isSubtypeOf() 478 return any(((WildcardType) supertype).getLowerBounds()).isSupertypeOf(runtimeType); in isSubtypeOf() [all …]
|
/external/guava/android/guava/src/com/google/common/reflect/ |
D | TypeToken.java | 273 TypeToken<?> supertype = of(getCovariantTypeResolver().resolveType(type)); in resolveSupertype() local 275 supertype.covariantTypeResolver = covariantTypeResolver; in resolveSupertype() 276 supertype.invariantTypeResolver = invariantTypeResolver; in resolveSupertype() 277 return supertype; in resolveSupertype() 399 TypeToken<? super T> supertype = in getSupertype() local 401 return supertype; in getSupertype() 474 public final boolean isSubtypeOf(Type supertype) { in isSubtypeOf() argument 475 checkNotNull(supertype); in isSubtypeOf() 476 if (supertype instanceof WildcardType) { in isSubtypeOf() 480 return any(((WildcardType) supertype).getLowerBounds()).isSupertypeOf(runtimeType); in isSubtypeOf() [all …]
|
/external/dagger2/java/dagger/internal/codegen/javapoet/ |
D | TypeSpecs.java | 34 public static TypeSpec.Builder addSupertype(TypeSpec.Builder typeBuilder, TypeElement supertype) { in addSupertype() argument 35 switch (supertype.getKind()) { in addSupertype() 37 return typeBuilder.superclass(ClassName.get(supertype)); in addSupertype() 39 return typeBuilder.addSuperinterface(ClassName.get(supertype)); in addSupertype() 41 throw new AssertionError(supertype + " is neither a class nor an interface."); in addSupertype()
|
/external/dagger2/javatests/dagger/internal/codegen/javapoet/ |
D | ExpressionTest.java | 53 TypeMirror supertype = type(Supertype.class); in castTo() local 56 Expression castTo = expression.castTo(supertype); in castTo() 58 assertThat(castTo.type()).isSameInstanceAs(supertype); in castTo()
|
/external/dexmaker/dexmaker/src/main/java/com/android/dx/ |
D | DexMaker.java | 233 TypeId<?> supertype, TypeId<?>... interfaces) { in declare() argument 246 declaration.supertype = supertype; in declare() 358 if (decl.supertype != null) { in generateFileName() 359 int sum = 31 * decl.supertype.hashCode() + decl.interfaces.hashCode(); in generateFileName() 556 private TypeId<?> supertype; field in DexMaker.TypeDeclaration 580 classDefItem = new ClassDefItem(thisType, flags, supertype.constant, in toClassDefItem()
|
/external/guava/android/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenSubtypeTest.java | 51 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass() local 53 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass() 57 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() local 59 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() 63 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() local 65 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() 69 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_staticAnonymousClass() local 71 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_staticAnonymousClass()
|
D | TypeTokenTest.java | 1279 TypeToken<TwoTypeArgs<?, ?>> supertype = new TypeToken<TwoTypeArgs<?, ?>>() {}; in testGetSubtype_toWildcard() local 1282 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_toWildcard() 1284 new TypeToken<StringForFirstTypeArg<?>>() {}, supertype.getSubtype(subtype.getRawType())); in testGetSubtype_toWildcard() 1296 TypeToken<TwoTypeArgs<?, ?>.InnerType<?, ?>> supertype = in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() local 1300 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() 1302 (ParameterizedType) supertype.getSubtype(subtype.getRawType()).getType(); in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() 1321 TypeToken<TwoTypeArgs<?, ? extends Number>> supertype = in testGetSubtype_toWildcardWithBounds() local 1325 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_toWildcardWithBounds() 1328 TypeToken<?> unused = supertype.getSubtype(subtype.getRawType()); in testGetSubtype_toWildcardWithBounds() 1333 TypeToken<Base> supertype = new TypeToken<Base>() {}; in testGetSubtype_baseClassWithNoTypeArgs() local [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenSubtypeTest.java | 51 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass() local 53 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass() 57 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() local 59 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() 63 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() local 65 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() 69 TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; in testSubtypeOfInnerClass_staticAnonymousClass() local 71 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_staticAnonymousClass()
|
D | TypeTokenTest.java | 1279 TypeToken<TwoTypeArgs<?, ?>> supertype = new TypeToken<TwoTypeArgs<?, ?>>() {}; in testGetSubtype_toWildcard() local 1282 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_toWildcard() 1284 new TypeToken<StringForFirstTypeArg<?>>() {}, supertype.getSubtype(subtype.getRawType())); in testGetSubtype_toWildcard() 1296 TypeToken<TwoTypeArgs<?, ?>.InnerType<?, ?>> supertype = in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() local 1300 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() 1302 (ParameterizedType) supertype.getSubtype(subtype.getRawType()).getType(); in testGetSubtype_innerTypeOfGenericClassTranslatesOwnerTypeVars() 1321 TypeToken<TwoTypeArgs<?, ? extends Number>> supertype = in testGetSubtype_toWildcardWithBounds() local 1325 assertTrue(subtype.isSubtypeOf(supertype)); in testGetSubtype_toWildcardWithBounds() 1328 TypeToken<?> unused = supertype.getSubtype(subtype.getRawType()); in testGetSubtype_toWildcardWithBounds() 1333 TypeToken<Base> supertype = new TypeToken<Base>() {}; in testGetSubtype_baseClassWithNoTypeArgs() local [all …]
|
/external/dagger2/javatests/dagger/internal/codegen/ |
D | SubcomponentCreatorValidationTest.java | 833 JavaFileObject supertype = in covariantFactoryMethodReturnType() local 857 Compilation compilation = compile(foo, supertype, subcomponent); in covariantFactoryMethodReturnType() 883 JavaFileObject supertype = in covariantFactoryMethodReturnType_hasNewMethod() local 909 Compilation compilation = compile(foo, bar, supertype, subcomponent); in covariantFactoryMethodReturnType_hasNewMethod() 944 JavaFileObject supertype = in covariantFactoryMethodReturnType_hasNewMethod_buildMethodInherited() local 977 Compilation compilation = compile(foo, bar, supertype, creatorSupertype, subcomponent); in covariantFactoryMethodReturnType_hasNewMethod_buildMethodInherited()
|
D | DelegateBindingExpressionTest.java | 448 JavaFileObject supertype = in noCast_rawTypes_Provider_get_toInaccessibleType() local 504 .compile(supertype, subtype, usesSupertype, module, component); in noCast_rawTypes_Provider_get_toInaccessibleType() 760 JavaFileObject supertype = in inlineFactoryOfInacessibleType() local 803 .compile(supertype, injectableSubtype, module, component); in inlineFactoryOfInacessibleType()
|
D | ComponentCreatorTest.java | 1045 JavaFileObject supertype = in covariantFactoryMethodReturnType() local 1069 Compilation compilation = compile(foo, supertype, component); in covariantFactoryMethodReturnType() 1095 JavaFileObject supertype = in covariantFactoryMethodReturnType_hasNewMethod() local 1121 Compilation compilation = compile(foo, bar, supertype, component); in covariantFactoryMethodReturnType_hasNewMethod() 1156 JavaFileObject supertype = in covariantFactoryMethodReturnType_hasNewMethod_factoryMethodInherited() local 1189 Compilation compilation = compile(foo, bar, supertype, creatorSupertype, component); in covariantFactoryMethodReturnType_hasNewMethod_factoryMethodInherited()
|
D | MembersInjectionTest.java | 1448 JavaFileObject supertype = in publicSupertypeHiddenSubtype() local 1493 .compile(foo, supertype, subtype, injectsSubtype, component); in publicSupertypeHiddenSubtype()
|
D | ComponentProcessorTest.java | 2431 JavaFileObject supertype = in componentMethodInChildCallsComponentMethodInParent() local 2495 Compilation compilation = daggerCompiler().compile(supertype, parent, testModule, child); in componentMethodInChildCallsComponentMethodInParent()
|
/external/guice/core/src/com/google/inject/ |
D | TypeLiteral.java | 237 public TypeLiteral<?> getSupertype(Class<?> supertype) { in getSupertype() argument 239 supertype.isAssignableFrom(rawType), "%s is not a supertype of %s", supertype, this.type); in getSupertype() local 240 return resolve(MoreTypes.getGenericSupertype(type, rawType, supertype)); in getSupertype()
|
/external/dagger2/java/dagger/internal/codegen/ |
D | InjectBindingRegistryImpl.java | 277 for (Optional<DeclaredType> supertype = types.nonObjectSuperclass(type); in tryRegisterMembersInjectedType() 278 supertype.isPresent(); in tryRegisterMembersInjectedType() 279 supertype = types.nonObjectSuperclass(supertype.get())) { in tryRegisterMembersInjectedType() 280 getOrFindMembersInjectionBinding(keyFactory.forMembersInjectedType(supertype.get())); in tryRegisterMembersInjectedType()
|
D | ComponentImplementation.java | 516 void addSupertype(TypeElement supertype) { in addSupertype() argument 517 TypeSpecs.addSupertype(component, supertype); in addSupertype()
|
/external/guava/guava/src/com/google/common/eventbus/ |
D | SubscriberRegistry.java | 179 for (Class<?> supertype : supertypes) { in getAnnotatedMethodsNotCached() 180 for (Method method : supertype.getDeclaredMethods()) { in getAnnotatedMethodsNotCached()
|
/external/guava/android/guava/src/com/google/common/eventbus/ |
D | SubscriberRegistry.java | 179 for (Class<?> supertype : supertypes) { in getAnnotatedMethodsNotCached() 180 for (Method method : supertype.getDeclaredMethods()) { in getAnnotatedMethodsNotCached()
|
/external/v8/src/torque/ |
D | instructions.cc | 30 void ExpectSubtype(const Type* subtype, const Type* supertype) { in ExpectSubtype() argument 31 if (!subtype->IsSubtypeOf(supertype)) { in ExpectSubtype() 32 ReportError("type ", *subtype, " is not a subtype of ", *supertype); in ExpectSubtype()
|
D | types.cc | 90 bool Type::IsSubtypeOf(const Type* supertype) const { in IsSubtypeOf() 91 if (supertype->IsTopType()) return true; in IsSubtypeOf() 93 if (const UnionType* union_type = UnionType::DynamicCast(supertype)) { in IsSubtypeOf() 98 if (subtype == supertype) return true; in IsSubtypeOf()
|
/external/javapoet/src/main/java/com/squareup/javapoet/ |
D | TypeSpec.java | 192 TypeName supertype = !superinterfaces.isEmpty() ? superinterfaces.get(0) : superclass; in emit() local 193 codeWriter.emit("new $T(", supertype); in emit()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/TableGen/ |
D | if.td | 77 // supertype variable.
|