/external/turbine/java/com/google/turbine/types/ |
D | Canonicalize.java | 28 import com.google.turbine.type.Type.ClassTy; 29 import com.google.turbine.type.Type.ClassTy.SimpleClassTy; 80 return canonicalizeClassTy(env, base, (ClassTy) type); in canonicalize() 87 private static ClassTy canon(Env<ClassSymbol, TypeBoundClass> env, ClassSymbol base, ClassTy ty) { in canon() 93 Iterator<ClassTy.SimpleClassTy> it = ty.classes.iterator(); in canon() 94 Collection<ClassTy.SimpleClassTy> lexicalBase = lexicalBase(env, ty.classes.get(0).sym(), base); in canon() 95 ClassTy canon = in canon() 97 ? new ClassTy(lexicalBase) in canon() 98 : new ClassTy(Collections.singletonList(it.next())); in canon() 110 private static boolean isRaw(Env<ClassSymbol, TypeBoundClass> env, ClassTy ty) { in isRaw() [all …]
|
D | Erasure.java | 34 return eraseClassTy((Type.ClassTy) ty); in erase() 53 return Type.ClassTy.OBJECT; in eraseTyVar() 61 public static Type.ClassTy eraseClassTy(Type.ClassTy ty) { in eraseClassTy() 62 ImmutableList.Builder<Type.ClassTy.SimpleClassTy> classes = ImmutableList.builder(); in eraseClassTy() 63 for (Type.ClassTy.SimpleClassTy c : ty.classes) { in eraseClassTy() 67 classes.add(new Type.ClassTy.SimpleClassTy(c.sym(), ImmutableList.of(), c.annos())); in eraseClassTy() 70 return new Type.ClassTy(classes.build()); in eraseClassTy()
|
/external/turbine/javatests/com/google/turbine/lower/ |
D | LowerSignatureTest.java | 36 Type.ClassTy type = in simple() 37 new Type.ClassTy( in simple() 39 new Type.ClassTy.SimpleClassTy( in simple() 50 new Type.ClassTy( in inner() 52 new Type.ClassTy.SimpleClassTy( in inner() 56 new Type.ClassTy.SimpleClassTy( in inner() 65 Type.ClassTy type = in genericEnclosing() 66 new Type.ClassTy( in genericEnclosing() 68 new Type.ClassTy.SimpleClassTy( in genericEnclosing() 70 ImmutableList.of(Type.ClassTy.OBJECT), in genericEnclosing() [all …]
|
D | LowerTest.java | 83 ImmutableList<Type.ClassTy> interfaceTypes = in hello() 85 new Type.ClassTy( in hello() 87 new Type.ClassTy.SimpleClassTy( in hello() 94 Type.ClassTy xtnds = Type.ClassTy.OBJECT; in hello() 99 new Type.ClassTy( in hello() 101 new Type.ClassTy.SimpleClassTy( in hello() 128 new Type.ClassTy( in hello() 130 new Type.ClassTy.SimpleClassTy( in hello() 137 new Type.ClassTy( in hello() 139 new Type.ClassTy.SimpleClassTy( in hello() [all …]
|
/external/turbine/java/com/google/turbine/binder/ |
D | TypeBinder.java | 46 import com.google.turbine.tree.Tree.ClassTy; 169 ImmutableList.Builder<Type.ClassTy> interfaceTypes = ImmutableList.builder(); in bind() 170 Type.ClassTy superClassType; in bind() 174 new Type.ClassTy( in bind() 176 new Type.ClassTy.SimpleClassTy( in bind() 178 ImmutableList.of(Type.ClassTy.asNonParametricClassTy(owner)), in bind() 182 superClassType = Type.ClassTy.OBJECT; in bind() 183 interfaceTypes.add(Type.ClassTy.asNonParametricClassTy(ClassSymbol.ANNOTATION)); in bind() 187 superClassType = (Type.ClassTy) bindClassTy(bindingScope, base.decl().xtnds().get()); in bind() 192 superClassType = Type.ClassTy.OBJECT; in bind() [all …]
|
D | ConstBinder.java | 45 import com.google.turbine.type.Type.ClassTy; 46 import com.google.turbine.type.Type.ClassTy.SimpleClassTy; 211 return ((ClassTy) type).sym(); in bindRepeatable() 248 if (((Type.ClassTy) base.type()).sym().equals(ClassSymbol.STRING)) { in fieldValue() 262 private ImmutableList<ClassTy> bindClassTypes(ImmutableList<ClassTy> types) { in bindClassTypes() 263 ImmutableList.Builder<ClassTy> result = ImmutableList.builder(); in bindClassTypes() 264 for (ClassTy t : types) { in bindClassTypes() 299 return bindClassType((ClassTy) type); in bindType() 330 private ClassTy bindClassType(ClassTy type) { in bindClassType() 331 ClassTy classTy = type; in bindClassType() [all …]
|
D | CanonicalTypeBinder.java | 31 import com.google.turbine.type.Type.ClassTy; 42 ClassTy superClassType = null; in bind() 46 ImmutableList.Builder<ClassTy> interfaceTypes = ImmutableList.builder(); in bind() 47 for (ClassTy i : base.interfaceTypes()) { in bind()
|
D | DisambiguateTypeAnnotations.java | 40 import com.google.turbine.type.Type.ClassTy; 41 import com.google.turbine.type.Type.ClassTy.SimpleClassTy; 198 ClassTy classTy = (ClassTy) type; in addAnnotationsToType() 202 return new Type.ClassTy( in addAnnotationsToType()
|
D | HierarchyBinder.java | 83 for (Tree.ClassTy i : decl.impls()) { in bind() 109 private ClassSymbol resolveClass(Tree.ClassTy ty) { in resolveClass() 113 for (Tree.ClassTy curr = ty; curr != null; curr = curr.base().orNull()) { in resolveClass()
|
D | ConstEvaluator.java | 48 import com.google.turbine.tree.Tree.ClassTy; 171 return Type.ClassTy.asNonParametricClassTy(resolveClass((ClassTy) type)); in evalClassLiteralType() 189 private ClassSymbol resolveClass(ClassTy classTy) { in resolveClass() 191 for (ClassTy curr = classTy; curr != null; curr = curr.base().orNull()) { in resolveClass() 424 ClassTy classTy = (ClassTy) t.ty(); in evalCast()
|
/external/turbine/java/com/google/turbine/binder/bound/ |
D | SourceTypeBoundClass.java | 31 import com.google.turbine.type.Type.ClassTy; 45 private final Type.ClassTy superClassType; 46 private final ImmutableList<Type.ClassTy> interfaceTypes; 57 ImmutableList<ClassTy> interfaceTypes, in SourceTypeBoundClass() 58 ClassTy superClassType, in SourceTypeBoundClass() 101 new Function<ClassTy, ClassSymbol>() { in interfaces() 103 public ClassSymbol apply(ClassTy classTy) { in interfaces() 136 public ImmutableList<Type.ClassTy> interfaceTypes() { 142 public Type.ClassTy superClassType() {
|
D | TypeBoundClass.java | 35 Type.ClassTy superClassType(); in superClassType()
|
/external/turbine/java/com/google/turbine/parse/ |
D | Parser.java | 37 import com.google.turbine.tree.Tree.ClassTy; 193 ImmutableList.Builder<ClassTy> interfaces = ImmutableList.builder(); in interfaceDeclaration() 209 Optional.<ClassTy>absent(), in interfaceDeclaration() 227 Optional.<ClassTy>absent(), in annotationDeclaration() 228 ImmutableList.<ClassTy>of(), in annotationDeclaration() 236 ImmutableList.Builder<ClassTy> interfaces = ImmutableList.builder(); in enumDeclaration() 253 Optional.<ClassTy>absent(), in enumDeclaration() 288 new ClassTy( in enumMembers() 290 Optional.<ClassTy>absent(), in enumMembers() 324 ClassTy xtnds = null; in classDeclaration() [all …]
|
D | ConstExpressionParser.java | 29 import com.google.turbine.tree.Tree.ClassTy; 232 private ClassTy asClassTy(ImmutableList<String> names) { in asClassTy() 233 ClassTy cty = null; in asClassTy() 236 new ClassTy( in asClassTy()
|
/external/turbine/java/com/google/turbine/type/ |
D | Type.java | 63 class ClassTy implements Type { class 69 public static final ClassTy OBJECT = asNonParametricClassTy(ClassSymbol.OBJECT); 72 public static final ClassTy STRING = asNonParametricClassTy(ClassSymbol.STRING); 75 public static ClassTy asNonParametricClassTy(ClassSymbol i) { in asNonParametricClassTy() 76 return new ClassTy( in asNonParametricClassTy() 88 public ClassTy(Iterable<SimpleClassTy> classes) { in ClassTy() method in Type.ClassTy
|
/external/turbine/java/com/google/turbine/tree/ |
D | Tree.java | 212 public static class ClassTy extends Type { class in Tree 213 private final Optional<ClassTy> base; 217 public ClassTy( in ClassTy() method in Tree.ClassTy 219 Optional<ClassTy> base, in ClassTy() 244 public Optional<ClassTy> base() { in base() 671 private final ImmutableList<ClassTy> exntys; 682 ImmutableList<ClassTy> exntys, in MethDecl() 729 public ImmutableList<ClassTy> exntys() { in exntys() 803 private final Optional<ClassTy> xtnds; 804 private final ImmutableList<ClassTy> impls; [all …]
|
D | Pretty.java | 114 public Void visitClassTy(Tree.ClassTy classTy, Void input) { in visitClassTy() 405 for (Tree.ClassTy t : tyDecl.impls()) { in visitTyDecl()
|
/external/turbine/java/com/google/turbine/binder/bytecode/ |
D | BytecodeBinder.java | 36 static Type.ClassTy bindClassTy(Sig.ClassTySig sig, Function<String, TyVarSymbol> scope) { in bindClassTy() 39 List<Type.ClassTy.SimpleClassTy> classes = new ArrayList<>(); in bindClassTy() 50 classes.add(new Type.ClassTy.SimpleClassTy(sym, tyArgs.build(), ImmutableList.of())); in bindClassTy() 53 return new Type.ClassTy(classes); in bindClassTy()
|
D | BytecodeBoundClass.java | 51 import com.google.turbine.type.Type.ClassTy; 256 Supplier<ClassTy> superClassType = 258 new Supplier<ClassTy>() { 260 public ClassTy get() { 265 return ClassTy.asNonParametricClassTy(superclass()); 273 public ClassTy superClassType() { in superClassType()
|
/external/turbine/java/com/google/turbine/lower/ |
D | LowerSignature.java | 37 import com.google.turbine.type.Type.ClassTy; 38 import com.google.turbine.type.Type.ClassTy.SimpleClassTy; 56 return classTySig((Type.ClassTy) ty); in signature() 84 private ClassTySig classTySig(ClassTy t) { in classTySig() 217 for (ClassTy i : info.interfaceTypes()) { in classSignature() 238 for (ClassTy i : ci.interfaceTypes()) { in classNeedsSig() 253 for (SimpleClassTy s : ((ClassTy) ty).classes) { in needsSig()
|
D | Lower.java | 62 import com.google.turbine.type.Type.ClassTy; 63 import com.google.turbine.type.Type.ClassTy.SimpleClassTy; 193 exceptions.add(sig.descriptor(((ClassTy) Erasure.erase(e, tenv)).sym())); in lowerMethod() 612 lowerClassTypeTypeAnnotations((ClassTy) type, path); in lowerTypeAnnotations() 671 private void lowerClassTypeTypeAnnotations(ClassTy type, TypePath path) { in lowerClassTypeTypeAnnotations()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | CodeViewDebug.h | 243 codeview::TypeIndex lowerType(const DIType *Ty, const DIType *ClassTy); 252 const DIType *ClassTy, 284 const DIType *ClassTy = nullptr);
|
D | CodeViewDebug.cpp | 276 const DIType *ClassTy) { in recordTypeIndexForDINode() argument 277 auto InsertResult = TypeIndices.insert({{Node, ClassTy}, TI}); in recordTypeIndexForDINode() 928 TypeIndex CodeViewDebug::lowerType(const DIType *Ty, const DIType *ClassTy) { in lowerType() argument 947 if (ClassTy) { in lowerType() 950 return lowerTypeMemberFunction(cast<DISubroutineType>(Ty), ClassTy, in lowerType() 1301 const DIType *ClassTy, in lowerTypeMemberFunction() argument 1304 TypeIndex ClassType = getTypeIndex(ClassTy); in lowerTypeMemberFunction() 1746 const DIType *ClassTy = ClassTyRef.resolve(); in getTypeIndex() local 1755 auto I = TypeIndices.find({Ty, ClassTy}); in getTypeIndex() 1760 TypeIndex TI = lowerType(Ty, ClassTy); in getTypeIndex() [all …]
|
/external/clang/lib/AST/ |
D | DeclCXX.cpp | 1670 QualType ClassTy = C.getTypeDeclType(getParent()); in getThisType() local 1671 ClassTy = C.getQualifiedType(ClassTy, in getThisType() 1673 return C.getPointerType(ClassTy); in getThisType() 1901 CanQualType ClassTy in isCopyOrMoveConstructor() local 1903 if (PointeeType.getUnqualifiedType() != ClassTy) in isCopyOrMoveConstructor() 1943 CanQualType ClassTy in isSpecializationCopyingObject() local 1945 if (ParamType.getUnqualifiedType() != ClassTy) in isSpecializationCopyingObject()
|
/external/clang/lib/CodeGen/ |
D | CGObjCMac.cpp | 533 llvm::StructType *ClassTy; member in __anon1045d6b60111::ObjCTypesHelper 1811 Target = CGF.Builder.CreateStructGEP(ObjCTypes.ClassTy, Target, 0); in GenerateMessageSendSuper() 1816 CGF.Builder.CreateStructGEP(ObjCTypes.ClassTy, MetaClassPtr, 1); in GenerateMessageSendSuper() 1825 ClassPtr = CGF.Builder.CreateStructGEP(ObjCTypes.ClassTy, ClassPtr, 1); in GenerateMessageSendSuper() 1830 llvm::Type *ClassTy = in GenerateMessageSendSuper() local 1832 Target = CGF.Builder.CreateBitCast(Target, ClassTy); in GenerateMessageSendSuper() 3334 llvm::Constant *Init = llvm::ConstantStruct::get(ObjCTypes.ClassTy, in GenerateClass() 3342 assert(GV->getType()->getElementType() == ObjCTypes.ClassTy && in GenerateClass() 3360 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ClassTy); in EmitMetaClass() 3400 llvm::Constant *Init = llvm::ConstantStruct::get(ObjCTypes.ClassTy, in EmitMetaClass() [all …]
|