/art/libdexfile/dex/ |
D | descriptors_names.cc | 29 void AppendPrettyDescriptor(const char* descriptor, std::string* result) { in AppendPrettyDescriptor() argument 31 const char* c = descriptor; in AppendPrettyDescriptor() 56 default: result->append(descriptor); return; in AppendPrettyDescriptor() 76 std::string PrettyDescriptor(const char* descriptor) { in PrettyDescriptor() argument 78 AppendPrettyDescriptor(descriptor, &result); in PrettyDescriptor() 129 std::string descriptor(class_name); in DotToDescriptor() local 130 std::replace(descriptor.begin(), descriptor.end(), '.', '/'); in DotToDescriptor() 131 if (descriptor.length() > 0 && descriptor[0] != '[') { in DotToDescriptor() 132 descriptor = "L" + descriptor + ";"; in DotToDescriptor() 134 return descriptor; in DotToDescriptor() [all …]
|
D | descriptors_names.h | 31 void AppendPrettyDescriptor(const char* descriptor, std::string* result); 32 std::string PrettyDescriptor(const char* descriptor); 46 std::string DescriptorToDot(const char* descriptor); 50 std::string DescriptorToName(const char* descriptor);
|
D | type_lookup_table_test.cc | 44 const char* descriptor = pair.first; in TEST_P() local 45 size_t hash = ComputeModifiedUtf8Hash(descriptor); in TEST_P() 46 uint32_t class_def_idx = table.Lookup(descriptor, hash); in TEST_P()
|
D | descriptors_names_test.cc | 86 std::vector<uint8_t> descriptor( in TEST_F() local 88 EXPECT_TRUE(IsValidDescriptor(reinterpret_cast<char*>(&descriptor[0]))); in TEST_F()
|
/art/runtime/jit/ |
D | debugger_interface.cc | 255 static uint64_t GetNextTimestamp(JITDescriptor& descriptor) { in GetNextTimestamp() argument 256 return std::max(descriptor.timestamp_ + 1, NanoTime()); in GetNextTimestamp() 260 static void Seqlock(JITDescriptor& descriptor) { in Seqlock() argument 261 DCHECK_EQ(descriptor.seqlock_.load(kNonRacingRelaxed) & 1, 0u) << "Already locked"; in Seqlock() 262 descriptor.seqlock_.fetch_add(1, std::memory_order_relaxed); in Seqlock() 268 static void Sequnlock(JITDescriptor& descriptor) { in Sequnlock() argument 269 DCHECK_EQ(descriptor.seqlock_.load(kNonRacingRelaxed) & 1, 1u) << "Already unlocked"; in Sequnlock() 272 descriptor.seqlock_.fetch_add(1, std::memory_order_relaxed); in Sequnlock() 280 JITDescriptor& descriptor = NativeInfo::Descriptor(); in InsertNewEntry() local 281 const JITCodeEntry* prev = (next != nullptr ? next->prev_ : descriptor.tail_); in InsertNewEntry() [all …]
|
/art/runtime/ |
D | class_root.cc | 25 #define CLASS_ROOT_DESCRIPTOR(name, descriptor, mirror_type) descriptor, in GetClassRootDescriptor() argument 33 const char* descriptor = class_roots_descriptors[static_cast<size_t>(class_root)]; in GetClassRootDescriptor() local 34 CHECK(descriptor != nullptr); in GetClassRootDescriptor() 35 return descriptor; in GetClassRootDescriptor()
|
D | class_table.cc | 52 ObjPtr<mirror::Class> ClassTable::UpdateClass(const char* descriptor, in UpdateClass() argument 57 DescriptorHashPair pair(descriptor, hash); in UpdateClass() 62 LOG(FATAL) << "Updating class found in frozen table " << descriptor; in UpdateClass() 65 LOG(FATAL) << "Updating class not found " << descriptor; in UpdateClass() 68 CHECK_NE(existing, klass) << descriptor; in UpdateClass() 69 CHECK(!existing->IsResolved()) << descriptor; in UpdateClass() 70 CHECK_EQ(klass->GetStatus(), ClassStatus::kResolving) << descriptor; in UpdateClass() 71 CHECK(!klass->IsTemp()) << descriptor; in UpdateClass() 118 ObjPtr<mirror::Class> ClassTable::Lookup(const char* descriptor, size_t hash) { in Lookup() argument 119 DescriptorHashPair pair(descriptor, hash); in Lookup() [all …]
|
D | art_field.cc | 42 ObjPtr<mirror::Class> ArtField::ProxyFindSystemClass(const char* descriptor) { in ProxyFindSystemClass() argument 45 Thread::Current(), descriptor, /* class_loader= */ nullptr); in ProxyFindSystemClass()
|
/art/runtime/verifier/ |
D | method_verifier_test.cc | 37 void VerifyClass(const std::string& descriptor) in VerifyClass() argument 39 ASSERT_FALSE(descriptor.empty()); in VerifyClass() 41 ObjPtr<mirror::Class> klass = class_linker_->FindSystemClass(self, descriptor.c_str()); in VerifyClass() 48 if (android::base::StartsWith(descriptor, "Ljava/lang/invoke")) { in VerifyClass() 62 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile() local 63 VerifyClass(descriptor); in VerifyDexFile()
|
D | reg_type.h | 322 const std::string_view& descriptor, in RegType() argument 324 : descriptor_(descriptor), in RegType() 370 const std::string_view& descriptor, 383 const std::string_view& descriptor, in ConflictType() argument 385 : RegType(klass, descriptor, cache_id) { in ConflictType() 406 const std::string_view& descriptor, 419 const std::string_view& descriptor, in UndefinedType() argument 421 : RegType(klass, descriptor, cache_id) { in UndefinedType() 431 const std::string_view& descriptor, 440 const std::string_view& descriptor, [all …]
|
D | reg_type_cache.cc | 87 const char* descriptor, in FromDescriptor() argument 90 if (descriptor[1] == '\0') { in FromDescriptor() 91 switch (descriptor[0]) { in FromDescriptor() 112 } else if (descriptor[0] == 'L' || descriptor[0] == '[') { in FromDescriptor() 113 return From(loader, descriptor, precise); in FromDescriptor() 144 bool RegTypeCache::MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise) { in MatchDescriptor() argument 146 if (descriptor != entry->descriptor_) { in MatchDescriptor() 158 ObjPtr<mirror::Class> RegTypeCache::ResolveClass(const char* descriptor, in ResolveClass() argument 167 klass = class_linker_->FindClass(self, descriptor, class_loader); in ResolveClass() 169 klass = class_linker_->LookupClass(self, descriptor, loader); in ResolveClass() [all …]
|
D | reg_type.cc | 58 const std::string_view& descriptor, in PrimitiveType() argument 60 : RegType(klass, descriptor, cache_id) { in PrimitiveType() 62 CHECK(!descriptor.empty()); in PrimitiveType() 66 const std::string_view& descriptor, in Cat1Type() argument 68 : PrimitiveType(klass, descriptor, cache_id) { in Cat1Type() 72 const std::string_view& descriptor, in Cat2Type() argument 74 : PrimitiveType(klass, descriptor, cache_id) { in Cat2Type() 139 const std::string_view& descriptor, in CreateInstance() argument 142 instance_ = new DoubleHiType(klass, descriptor, cache_id); in CreateInstance() 154 const std::string_view& descriptor, in CreateInstance() argument [all …]
|
D | reg_type_cache.h | 83 const RegType& From(ObjPtr<mirror::ClassLoader> loader, const char* descriptor, bool precise) 89 const RegType* InsertClass(const std::string_view& descriptor, 94 const RegType& FromClass(const char* descriptor, ObjPtr<mirror::Class> klass, bool precise) 103 const char* descriptor, 175 ObjPtr<mirror::Class> ResolveClass(const char* descriptor, ObjPtr<mirror::ClassLoader> loader) 177 bool MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise)
|
D | method_verifier.cc | 199 void UninstantiableError(const char* descriptor) { in UninstantiableError() argument 201 << "non-instantiable klass " << descriptor; in UninstantiableError() 691 const char* descriptor in GetDeclaringClass() local 695 declaring_class_ = &FromClass(descriptor, klass, klass->CannotBeAssignedFromOtherTypes()); in GetDeclaringClass() 697 declaring_class_ = ®_types_.FromDescriptor(class_loader_.Get(), descriptor, false); in GetDeclaringClass() 715 const RegType& FromClass(const char* descriptor, ObjPtr<mirror::Class> klass, bool precise) in FromClass() argument 720 << "non-instantiable klass " << descriptor; in FromClass() 723 return reg_types_.FromClass(descriptor, klass, precise); in FromClass() 1323 const char* descriptor = dex_file_->StringByTypeIdx(idx); in CheckNewInstance() local 1324 if (UNLIKELY(descriptor[0] != 'L')) { in CheckNewInstance() [all …]
|
/art/runtime/native/ |
D | java_lang_VMClassLoader.cc | 43 const char* descriptor, in LookupClass() argument 48 return cl->LookupClass(self, descriptor, hash, class_loader); in LookupClass() 54 const char* descriptor, in FindClassInPathClassLoader() argument 59 if (cl->FindClassInBaseDexClassLoader(soa, self, descriptor, hash, class_loader, &result)) { in FindClassInPathClassLoader() 81 std::string descriptor(DotToDescriptor(name.c_str())); in VMClassLoader_findLoadedClass() local 82 const size_t descriptor_hash = ComputeModifiedUtf8Hash(descriptor.c_str()); in VMClassLoader_findLoadedClass() 86 descriptor.c_str(), in VMClassLoader_findLoadedClass() 117 descriptor.c_str(), in VMClassLoader_findLoadedClass()
|
/art/test/979-const-method-handle/src/ |
D | Main.java | 104 descriptor = "(Ljava/lang/String;)V") 114 descriptor = "Ljava/lang/String;") 124 descriptor = "Ljava/lang/String;") 134 descriptor = "D") 144 descriptor = "D") 154 descriptor = "Ljava/lang/String;") 166 descriptor = "I") 176 descriptor = "()Ljava/lang/Object;") 186 descriptor = "()V")
|
/art/tools/ahat/src/test-dump/android/os/ |
D | Binder.java | 41 public Binder(String descriptor) { in Binder() argument 42 mDescriptor = descriptor; in Binder()
|
/art/dex2oat/linker/ |
D | image_write_read_test.cc | 123 const char* descriptor = dex->GetClassDescriptor(class_def); in TestWriteRead() local 124 ObjPtr<mirror::Class> klass = class_linker_->FindSystemClass(soa.Self(), descriptor); in TestWriteRead() 125 EXPECT_TRUE(klass != nullptr) << descriptor; in TestWriteRead() 127 if (image_classes.find(std::string_view(descriptor)) == image_classes.end()) { in TestWriteRead() 128 EXPECT_TRUE(raw_klass >= image_end || raw_klass < image_begin) << descriptor; in TestWriteRead() 131 EXPECT_LT(image_begin, raw_klass) << descriptor; in TestWriteRead() 132 EXPECT_LT(raw_klass, image_end) << descriptor; in TestWriteRead()
|
/art/test/ti-agent/ |
D | jni_binder.cc | 126 static std::string DescriptorToDot(const char* descriptor) { in DescriptorToDot() argument 127 size_t length = strlen(descriptor); in DescriptorToDot() 129 if (descriptor[0] == 'L' && descriptor[length - 1] == ';') { in DescriptorToDot() 131 std::string result(descriptor + 1, length - 2); in DescriptorToDot() 136 std::string result(descriptor); in DescriptorToDot() 142 return descriptor; in DescriptorToDot() 157 std::string descriptor = android::base::StringPrintf("L%s;", class_name); in FindClassWithClassLoader() local 158 std::string dot_name = DescriptorToDot(descriptor.c_str()); in FindClassWithClassLoader()
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | AhatClassInstance.java | 164 String descriptor = getBinderDescriptor(); in getBinderTokenDescriptor() local 165 if (descriptor == null) { in getBinderTokenDescriptor() 169 if (isInstanceOfClass(descriptor + "$Stub")) { in getBinderTokenDescriptor() 175 return descriptor; in getBinderTokenDescriptor() 179 String descriptor = getBinderDescriptor(); in getBinderStubInterfaceName() local 180 if (descriptor == null || descriptor.isEmpty()) { in getBinderStubInterfaceName() 187 if (isInstanceOfClass(descriptor + "$Stub")) { in getBinderStubInterfaceName() 188 return descriptor; in getBinderStubInterfaceName()
|
/art/test/647-jni-get-field-id/ |
D | expected.txt | 26 Error message for Bad/Class: Invalid descriptor: Bad/Class. 27 Error message for Bad.Class: Invalid descriptor: Bad.Class. 28 Error message for LBad.Class;: Invalid descriptor: LBad.Class;.
|
/art/compiler/driver/ |
D | compiler_options.cc | 147 bool CompilerOptions::IsImageClass(const char* descriptor) const { in IsImageClass() 151 return image_classes_.find(std::string_view(descriptor)) != image_classes_.end(); in IsImageClass() 179 const char* descriptor = dex_file.GetClassDescriptor(dex_file.GetClassDef(class_def_idx)); in IsMethodVerifiedWithoutFailures() local 183 bool is_system_class = class_linker->FindSystemClass(self, descriptor) != nullptr; in IsMethodVerifiedWithoutFailures()
|
/art/openjdkjvmti/ |
D | ti_class_definition.cc | 128 std::string descriptor(m_klass->GetDescriptor(&descriptor_store)); in InitCommon() local 129 name_ = descriptor.substr(1, descriptor.size() - 2); in InitCommon() 136 const char* descriptor, in DequickenDexFile() argument 140 FixedUpDexFile::Create(*dex_file, descriptor)); in DequickenDexFile() 353 void ArtClassDefinition::InitFirstLoad(const char* descriptor, in InitFirstLoad() argument 362 std::string descriptor_str(descriptor); in InitFirstLoad() 368 DequickenDexFile(&dex_file, descriptor, dex_data); in InitFirstLoad()
|
D | ti_method.cc | 591 std::string descriptor; in Run() local 593 jvmtiError err = GetSlotType(method, pc, &descriptor, &slot_type); in Run() 599 err = GetTypeError(method, slot_type, descriptor); in Run() 620 const std::string& descriptor) 625 /*out*/std::string* descriptor, 631 /*out*/ std::string* descriptor, in InferSlotTypeFromVerifier() argument 658 *descriptor = (rt.HasClass() ? rt.GetDescriptor() : "Ljava/lang/Object;"); in InferSlotTypeFromVerifier() 662 *descriptor = "I"; in InferSlotTypeFromVerifier() 666 *descriptor = "I"; in InferSlotTypeFromVerifier() 670 *descriptor = "J"; in InferSlotTypeFromVerifier() [all …]
|
/art/tools/art_verifier/ |
D | art_verifier.cc | 238 const char* descriptor = accessor.GetDescriptor(); in ExecuteWithRuntime() local 239 h_klass.Assign(class_linker->FindClass(soa.Self(), descriptor, h_loader)); in ExecuteWithRuntime() 242 LOG(ERROR) << "Warning: could not load " << descriptor; in ExecuteWithRuntime() 257 LOG(INFO) << descriptor << ": " << res << " " << error_msg; in ExecuteWithRuntime()
|