/art/runtime/ |
D | class_table.cc | 56 mirror::Class* ClassTable::UpdateClass(const char* descriptor, mirror::Class* klass, size_t hash) { in UpdateClass() argument 59 auto existing_it = classes_.back().FindWithHash(descriptor, hash); in UpdateClass() 62 if (class_set.FindWithHash(descriptor, hash) != class_set.end()) { in UpdateClass() 63 LOG(FATAL) << "Updating class found in frozen table " << descriptor; in UpdateClass() 66 LOG(FATAL) << "Updating class not found " << descriptor; in UpdateClass() 69 CHECK_NE(existing, klass) << descriptor; in UpdateClass() 70 CHECK(!existing->IsResolved()) << descriptor; in UpdateClass() 71 CHECK_EQ(klass->GetStatus(), mirror::Class::kStatusResolving) << descriptor; in UpdateClass() 72 CHECK(!klass->IsTemp()) << descriptor; in UpdateClass() 94 mirror::Class* ClassTable::Lookup(const char* descriptor, size_t hash) { in Lookup() argument [all …]
|
D | class_table.h | 50 bool operator()(const GcRoot<mirror::Class>& a, const char* descriptor) const 53 uint32_t operator()(const char* descriptor) const NO_THREAD_SAFETY_ANALYSIS; 90 mirror::Class* UpdateClass(const char* descriptor, mirror::Class* new_klass, size_t hash) 114 mirror::Class* Lookup(const char* descriptor, size_t hash) 132 bool Remove(const char* descriptor)
|
D | type_lookup_table_test.cc | 48 const char* descriptor = pair.first; in TEST_P() local 49 size_t hash = ComputeModifiedUtf8Hash(descriptor); in TEST_P() 50 uint32_t class_def_idx = table->Lookup(descriptor, hash); in TEST_P()
|
D | art_field.cc | 50 mirror::Class* ArtField::ProxyFindSystemClass(const char* descriptor) { in ProxyFindSystemClass() argument 52 return Runtime::Current()->GetClassLinker()->FindSystemClass(Thread::Current(), descriptor); in ProxyFindSystemClass()
|
D | utils.cc | 225 std::string PrettyDescriptor(const char* descriptor) { in PrettyDescriptor() argument 227 const char* c = descriptor; in PrettyDescriptor() 252 default: return descriptor; in PrettyDescriptor() 569 std::string descriptor(class_name); in DotToDescriptor() local 570 std::replace(descriptor.begin(), descriptor.end(), '.', '/'); in DotToDescriptor() 571 if (descriptor.length() > 0 && descriptor[0] != '[') { in DotToDescriptor() 572 descriptor = "L" + descriptor + ";"; in DotToDescriptor() 574 return descriptor; in DotToDescriptor() 577 std::string DescriptorToDot(const char* descriptor) { in DescriptorToDot() argument 578 size_t length = strlen(descriptor); in DescriptorToDot() [all …]
|
D | class_linker-inl.h | 32 inline mirror::Class* ClassLinker::FindSystemClass(Thread* self, const char* descriptor) { in FindSystemClass() argument 33 return FindClass(self, descriptor, ScopedNullHandle<mirror::ClassLoader>()); in FindSystemClass() 44 std::string descriptor = "["; in FindArrayClass() local 46 descriptor += (*element_class)->GetDescriptor(&temp); in FindArrayClass() 50 mirror::Class* array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass()
|
D | class_linker_test.cc | 49 void AssertNonExistentClass(const std::string& descriptor) in AssertNonExistentClass() argument 52 EXPECT_TRUE(class_linker_->FindSystemClass(self, descriptor.c_str()) == nullptr); in AssertNonExistentClass() 61 void AssertPrimitiveClass(const std::string& descriptor) in AssertPrimitiveClass() argument 64 AssertPrimitiveClass(descriptor, class_linker_->FindSystemClass(self, descriptor.c_str())); in AssertPrimitiveClass() 67 void AssertPrimitiveClass(const std::string& descriptor, mirror::Class* primitive) in AssertPrimitiveClass() argument 74 ASSERT_STREQ(descriptor.c_str(), primitive->GetDescriptor(&temp)); in AssertPrimitiveClass() 187 void AssertClass(const std::string& descriptor, Handle<mirror::Class> klass) in AssertClass() argument 190 EXPECT_STREQ(descriptor.c_str(), klass->GetDescriptor(&temp)); in AssertClass() 191 if (descriptor == "Ljava/lang/Object;") { in AssertClass() 333 void AssertDexFileClass(mirror::ClassLoader* class_loader, const std::string& descriptor) in AssertDexFileClass() argument [all …]
|
D | class_linker.cc | 113 static bool HasInitWithString(Thread* self, ClassLinker* class_linker, const char* descriptor) in HasInitWithString() argument 119 mirror::Class* exception_class = class_linker->FindClass(self, descriptor, class_loader); in HasInitWithString() 144 const char* descriptor = obj->AsClass()->GetDescriptor(&temp); in HandleEarlierVerifyError() local 146 if (HasInitWithString(self, class_linker, descriptor)) { in HandleEarlierVerifyError() 147 self->ThrowNewException(descriptor, PrettyDescriptor(c).c_str()); in HandleEarlierVerifyError() 149 self->ThrowNewException(descriptor, nullptr); in HandleEarlierVerifyError() 333 void ClassLinker::CheckSystemClass(Thread* self, Handle<mirror::Class> c1, const char* descriptor) { in CheckSystemClass() argument 334 mirror::Class* c2 = FindSystemClass(self, descriptor); in CheckSystemClass() 336 LOG(FATAL) << "Could not find class " << descriptor; in CheckSystemClass() 343 LOG(FATAL) << "InitWithoutImage: Class mismatch for " << descriptor in CheckSystemClass() [all …]
|
D | class_linker.h | 162 const char* descriptor, 174 const char* descriptor, 183 mirror::Class* FindSystemClass(Thread* self, const char* descriptor) 199 const char* descriptor, 210 const char* descriptor, 217 void LookupClasses(const char* descriptor, std::vector<mirror::Class*>& classes) 225 bool RemoveClass(const char* descriptor, mirror::ClassLoader* class_loader) 534 mirror::Class* InsertClass(const char* descriptor, mirror::Class* klass, size_t hash) 726 const char* descriptor, 806 const char* descriptor, [all …]
|
D | utils.h | 136 std::string PrettyDescriptor(mirror::String* descriptor) 138 std::string PrettyDescriptor(const char* descriptor); 191 std::string DescriptorToDot(const char* descriptor); 195 std::string DescriptorToName(const char* descriptor);
|
D | dex_file_verifier.cc | 141 bool DexFileVerifier::CheckShortyDescriptorMatch(char shorty_char, const char* descriptor, in CheckShortyDescriptorMatch() argument 158 if (UNLIKELY((descriptor[0] != shorty_char) || (descriptor[1] != '\0'))) { in CheckShortyDescriptorMatch() 160 shorty_char, descriptor); in CheckShortyDescriptorMatch() 165 if (UNLIKELY((descriptor[0] != 'L') && (descriptor[0] != '['))) { in CheckShortyDescriptorMatch() 166 ErrorStringPrintf("Shorty vs. type mismatch: '%c', '%s'", shorty_char, descriptor); in CheckShortyDescriptorMatch() 1729 LOAD_STRING(descriptor, item->descriptor_idx_, "inter_type_id_item descriptor_idx") in CheckInterTypeIdItem() 1732 if (UNLIKELY(!IsValidDescriptor(descriptor))) { in CheckInterTypeIdItem() 1733 ErrorStringPrintf("Invalid type descriptor: '%s'", descriptor); in CheckInterTypeIdItem() 1774 const char* descriptor = it.GetDescriptor(); in CheckInterProtoIdItem() local 1775 if (!CheckShortyDescriptorMatch(*shorty, descriptor, false)) { in CheckInterProtoIdItem() [all …]
|
/art/runtime/verifier/ |
D | reg_type.h | 281 const StringPiece& descriptor, in RegType() argument 283 : descriptor_(descriptor), in RegType() 318 const StringPiece& descriptor, 326 ConflictType(mirror::Class* klass, const StringPiece& descriptor, in ConflictType() argument 328 : RegType(klass, descriptor, cache_id) {} in ConflictType() 347 const StringPiece& descriptor, 355 UndefinedType(mirror::Class* klass, const StringPiece& descriptor, in UndefinedType() argument 357 : RegType(klass, descriptor, cache_id) {} in UndefinedType() 364 PrimitiveType(mirror::Class* klass, const StringPiece& descriptor, 372 Cat1Type(mirror::Class* klass, const StringPiece& descriptor, [all …]
|
D | reg_type_cache.cc | 75 const char* descriptor, in FromDescriptor() argument 78 if (descriptor[1] == '\0') { in FromDescriptor() 79 switch (descriptor[0]) { in FromDescriptor() 100 } else if (descriptor[0] == 'L' || descriptor[0] == '[') { in FromDescriptor() 101 return From(loader, descriptor, precise); in FromDescriptor() 132 bool RegTypeCache::MatchDescriptor(size_t idx, const StringPiece& descriptor, bool precise) { in MatchDescriptor() argument 134 if (descriptor != entry->descriptor_) { in MatchDescriptor() 146 mirror::Class* RegTypeCache::ResolveClass(const char* descriptor, mirror::ClassLoader* loader) { in ResolveClass() argument 155 klass = class_linker->FindClass(self, descriptor, class_loader); in ResolveClass() 157 klass = class_linker->LookupClass(self, descriptor, ComputeModifiedUtf8Hash(descriptor), in ResolveClass() [all …]
|
D | method_verifier_test.cc | 32 void VerifyClass(const std::string& descriptor) in VerifyClass() argument 34 ASSERT_TRUE(descriptor != nullptr); in VerifyClass() 36 mirror::Class* klass = class_linker_->FindSystemClass(self, descriptor.c_str()); in VerifyClass() 54 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile() local 55 VerifyClass(descriptor); in VerifyDexFile()
|
D | reg_type.cc | 50 PrimitiveType::PrimitiveType(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) in PrimitiveType() argument 51 : RegType(klass, descriptor, cache_id) { in PrimitiveType() 53 CHECK(!descriptor.empty()); in PrimitiveType() 56 Cat1Type::Cat1Type(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) in Cat1Type() argument 57 : PrimitiveType(klass, descriptor, cache_id) { in Cat1Type() 60 Cat2Type::Cat2Type(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) in Cat2Type() argument 61 : PrimitiveType(klass, descriptor, cache_id) { in Cat2Type() 126 const StringPiece& descriptor, in CreateInstance() argument 129 instance_ = new DoubleHiType(klass, descriptor, cache_id); in CreateInstance() 141 const StringPiece& descriptor, in CreateInstance() argument [all …]
|
D | reg_type_cache.h | 59 const RegType& From(mirror::ClassLoader* loader, const char* descriptor, bool precise) 65 const RegType* InsertClass(const StringPiece& descriptor, mirror::Class* klass, bool precise) 68 const RegType& FromClass(const char* descriptor, mirror::Class* klass, bool precise) 76 const RegType& FromDescriptor(mirror::ClassLoader* loader, const char* descriptor, bool precise) 158 mirror::Class* ResolveClass(const char* descriptor, mirror::ClassLoader* loader) 160 bool MatchDescriptor(size_t idx, const StringPiece& descriptor, bool precise) 174 static const Type* CreatePrimitiveTypeInstance(const std::string& descriptor)
|
D | method_verifier.cc | 1256 const char* descriptor = dex_file_->StringByTypeIdx(idx); in CheckNewInstance() local 1257 if (descriptor[0] != 'L') { in CheckNewInstance() 1258 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "can't call new-instance on type '" << descriptor << "'"; in CheckNewInstance() 1289 const char* descriptor = dex_file_->StringByTypeIdx(idx); in CheckNewArray() local 1290 const char* cp = descriptor; in CheckNewArray() 1297 << "can't new-array class '" << descriptor << "' (not an array)"; in CheckNewArray() 1302 << "can't new-array class '" << descriptor << "' (exceeds limit)"; in CheckNewArray() 1631 static bool IsPrimitiveDescriptor(char descriptor) { in IsPrimitiveDescriptor() argument 1632 switch (descriptor) { in IsPrimitiveDescriptor() 1691 const char* descriptor = iterator.GetDescriptor(); in SetTypesFromSignature() local [all …]
|
/art/runtime/native/ |
D | java_lang_VMClassLoader.cc | 38 std::string descriptor(DotToDescriptor(name.c_str())); in VMClassLoader_findLoadedClass() local 39 const size_t descriptor_hash = ComputeModifiedUtf8Hash(descriptor.c_str()); in VMClassLoader_findLoadedClass() 40 mirror::Class* c = cl->LookupClass(soa.Self(), descriptor.c_str(), descriptor_hash, loader); in VMClassLoader_findLoadedClass() 64 cl->FindClassInPathClassLoader(soa, soa.Self(), descriptor.c_str(), descriptor_hash, in VMClassLoader_findLoadedClass()
|
D | dalvik_system_DexFile.cc | 271 const std::string descriptor(DotToDescriptor(class_name.c_str())); in DexFile_defineClassNative() local 272 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); in DexFile_defineClassNative() 274 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor.c_str(), hash); in DexFile_defineClassNative() 283 descriptor.c_str(), in DexFile_defineClassNative() 325 const char* descriptor = dex_file->GetClassDescriptor(class_def); in DexFile_getClassNameList() local 326 descriptors.insert(descriptor); in DexFile_getClassNameList() 339 std::string descriptor(DescriptorToDot(*it)); in DexFile_getClassNameList() local 340 ScopedLocalRef<jstring> jdescriptor(env, env->NewStringUTF(descriptor.c_str())); in DexFile_getClassNameList()
|
/art/runtime/lambda/ |
D | closure_test.cc | 226 void TestPrimitive(const char *descriptor, Args ... args) { in TestPrimitive() argument 227 const char* shorty = descriptor; in TestPrimitive() 229 SCOPED_TRACE(descriptor); in TestPrimitive() 236 … descriptor, // NOLINT [whitespace/blank_line] [2] in TestPrimitive() 254 TestPrimitiveWithClosure(closure_raw.get(), descriptor, shorty, args ...); in TestPrimitive() 267 TestPrimitiveWithClosure(closure_built.get(), descriptor, shorty, args ...); in TestPrimitive() 280 const char* descriptor, in TestPrimitiveWithClosure() argument 285 EXPECT_STREQ(descriptor, closure->GetCapturedVariablesTypeDescriptor()); in TestPrimitiveWithClosure()
|
/art/imgdiag/ |
D | imgdiag.cc | 208 std::string descriptor; member 583 std::string descriptor = GetClassDescriptor(klass); in DumpImageDiffMap() local 597 } else if (strcmp(descriptor.c_str(), "Ljava/lang/reflect/ArtMethod;") == 0) { in DumpImageDiffMap() 620 if (strcmp(descriptor.c_str(), "Ljava/lang/Class;") == 0) { in DumpImageDiffMap() 621 local_class_map[descriptor] = reinterpret_cast<mirror::Class*>(obj); in DumpImageDiffMap() 622 remote_class_map[descriptor] = reinterpret_cast<mirror::Class*>(remote_obj); in DumpImageDiffMap() 626 class_data[klass].descriptor = descriptor; in DumpImageDiffMap() 683 const std::string& descriptor = class_data[klass].descriptor; in DumpImageDiffMap() local 688 << "class descriptor: '" << descriptor << "'" in DumpImageDiffMap() 692 if (strcmp(descriptor.c_str(), "Ljava/lang/reflect/ArtMethod;") == 0) { in DumpImageDiffMap() [all …]
|
/art/compiler/ |
D | image_test.cc | 270 const char* descriptor = dex->GetClassDescriptor(class_def); in TestWriteRead() local 271 mirror::Class* klass = class_linker_->FindSystemClass(soa.Self(), descriptor); in TestWriteRead() 272 EXPECT_TRUE(klass != nullptr) << descriptor; in TestWriteRead() 273 if (image_classes.find(descriptor) != image_classes.end()) { in TestWriteRead() 275 EXPECT_LT(image_begin, reinterpret_cast<uint8_t*>(klass)) << descriptor; in TestWriteRead() 276 EXPECT_LT(reinterpret_cast<uint8_t*>(klass), image_end) << descriptor; in TestWriteRead() 279 reinterpret_cast<uint8_t*>(klass) < image_begin) << descriptor; in TestWriteRead()
|
/art/compiler/driver/ |
D | compiler_driver.cc | 505 const char* descriptor = dex_file.GetClassDescriptor(class_def); in GetDexToDexCompilationLevel() local 507 mirror::Class* klass = class_linker->FindClass(self, descriptor, class_loader); in GetDexToDexCompilationLevel() 938 bool CompilerDriver::IsImageClass(const char* descriptor) const { in IsImageClass() 941 return image_classes_->find(descriptor) != image_classes_->end(); in IsImageClass() 948 bool CompilerDriver::IsClassToCompile(const char* descriptor) const { in IsClassToCompile() 956 return classes_to_compile_->find(descriptor) != classes_to_compile_->end(); in IsClassToCompile() 1088 const std::string& descriptor(*it); in LoadImageClasses() local 1091 hs.NewHandle(class_linker->FindSystemClass(self, descriptor.c_str()))); in LoadImageClasses() 1093 VLOG(compiler) << "Failed to find class " << descriptor; in LoadImageClasses() 1125 const char* descriptor = dex_file->GetTypeDescriptor(type_id); in LoadImageClasses() local [all …]
|
/art/compiler/optimizing/ |
D | instruction_builder.h | 230 const char* descriptor, 239 const char* descriptor, 247 const char* descriptor);
|
D | instruction_builder.cc | 775 const char* descriptor = dex_file_->GetMethodShorty(method_idx); in BuildInvoke() local 776 Primitive::Type return_type = Primitive::GetType(descriptor[0]); in BuildInvoke() 779 size_t number_of_arguments = strlen(descriptor) - 1; in BuildInvoke() 816 descriptor); in BuildInvoke() 834 descriptor, in BuildInvoke() 899 descriptor, in BuildInvoke() 1037 const char* descriptor, in SetupInvokeArguments() argument 1048 Primitive::Type type = Primitive::GetType(descriptor[descriptor_index++]); in SetupInvokeArguments() 1092 const char* descriptor, in HandleInvoke() argument 1111 descriptor, in HandleInvoke() [all …]
|