Home
last modified time | relevance | path

Searched refs:supertype (Results 1 – 25 of 32) sorted by relevance

12

/external/v8/src/wasm/
Dwasm-subtyping.h17 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()
Dwasm-subtyping.cc45 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/
DTypeToken.java273 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/
DTypeToken.java273 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/
DTypeSpecs.java34 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/
DExpressionTest.java53 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/
DDexMaker.java233 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/
DTypeTokenSubtypeTest.java51 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()
DTypeTokenTest.java1279 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/
DTypeTokenSubtypeTest.java51 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()
DTypeTokenTest.java1279 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/
DSubcomponentCreatorValidationTest.java833 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()
DDelegateBindingExpressionTest.java448 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()
DComponentCreatorTest.java1045 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()
DMembersInjectionTest.java1448 JavaFileObject supertype = in publicSupertypeHiddenSubtype() local
1493 .compile(foo, supertype, subtype, injectsSubtype, component); in publicSupertypeHiddenSubtype()
DComponentProcessorTest.java2431 JavaFileObject supertype = in componentMethodInChildCallsComponentMethodInParent() local
2495 Compilation compilation = daggerCompiler().compile(supertype, parent, testModule, child); in componentMethodInChildCallsComponentMethodInParent()
/external/guice/core/src/com/google/inject/
DTypeLiteral.java237 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/
DInjectBindingRegistryImpl.java277 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()
DComponentImplementation.java516 void addSupertype(TypeElement supertype) { in addSupertype() argument
517 TypeSpecs.addSupertype(component, supertype); in addSupertype()
/external/guava/guava/src/com/google/common/eventbus/
DSubscriberRegistry.java179 for (Class<?> supertype : supertypes) { in getAnnotatedMethodsNotCached()
180 for (Method method : supertype.getDeclaredMethods()) { in getAnnotatedMethodsNotCached()
/external/guava/android/guava/src/com/google/common/eventbus/
DSubscriberRegistry.java179 for (Class<?> supertype : supertypes) { in getAnnotatedMethodsNotCached()
180 for (Method method : supertype.getDeclaredMethods()) { in getAnnotatedMethodsNotCached()
/external/v8/src/torque/
Dinstructions.cc30 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()
Dtypes.cc90 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/
DTypeSpec.java192 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/
Dif.td77 // supertype variable.

12