/art/libdexfile/dex/ |
D | descriptors_names.cc | 31 void AppendPrettyDescriptor(const char* descriptor, std::string* result) { in AppendPrettyDescriptor() argument 33 const char* c = descriptor; in AppendPrettyDescriptor() 76 default: result->append(descriptor); return; in AppendPrettyDescriptor() 98 std::string PrettyDescriptor(const char* descriptor) { in PrettyDescriptor() argument 100 AppendPrettyDescriptor(descriptor, &result); in PrettyDescriptor() 201 std::string descriptor(class_name); in DotToDescriptor() local 202 std::replace(descriptor.begin(), descriptor.end(), '.', '/'); in DotToDescriptor() 203 if (descriptor.length() > 0 && descriptor[0] != '[') { in DotToDescriptor() 204 descriptor = "L" + descriptor + ";"; in DotToDescriptor() 206 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); 51 std::string DescriptorToDot(const char* descriptor); 55 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()
|
/art/runtime/jit/ |
D | debugger_interface.cc | 261 static uint64_t GetNextTimestamp(JITDescriptor& descriptor) { in GetNextTimestamp() argument 262 return std::max(descriptor.timestamp_ + 1, NanoTime()); in GetNextTimestamp() 266 static void Seqlock(JITDescriptor& descriptor) { in Seqlock() argument 267 DCHECK_EQ(descriptor.seqlock_.load(kNonRacingRelaxed) & 1, 0u) << "Already locked"; in Seqlock() 268 descriptor.seqlock_.fetch_add(1, std::memory_order_relaxed); in Seqlock() 274 static void Sequnlock(JITDescriptor& descriptor) { in Sequnlock() argument 275 DCHECK_EQ(descriptor.seqlock_.load(kNonRacingRelaxed) & 1, 1u) << "Already unlocked"; in Sequnlock() 278 descriptor.seqlock_.fetch_add(1, std::memory_order_relaxed); in Sequnlock() 286 JITDescriptor& descriptor = NativeInfo::Descriptor(); in InsertNewEntry() local 287 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 | art_field.cc | 42 ObjPtr<mirror::Class> ArtField::ProxyFindSystemClass(const char* descriptor) { in ProxyFindSystemClass() argument 45 Thread::Current(), descriptor, /* class_loader= */ nullptr); in ProxyFindSystemClass()
|
D | sdk_checker.cc | 130 bool SdkChecker::ShouldDenyAccess(std::string_view descriptor) const { in ShouldDenyAccess() 137 const dex::TypeId* type_id = dex_file->FindTypeId(descriptor); in ShouldDenyAccess() 148 VLOG(verifier) << "Deny for " << descriptor; in ShouldDenyAccess()
|
/art/runtime/verifier/ |
D | reg_type_cache.cc | 60 #define CREATE_PRIMITIVE_TYPE(type, class_root, descriptor, id) \ in FillPrimitiveAndSmallConstantTypes() argument 63 descriptor, \ in FillPrimitiveAndSmallConstantTypes() 88 const char* descriptor) { in FromDescriptor() argument 89 if (descriptor[1] == '\0') { in FromDescriptor() 90 switch (descriptor[0]) { in FromDescriptor() 111 } else if (descriptor[0] == 'L' || descriptor[0] == '[') { in FromDescriptor() 112 return From(loader, descriptor); in FromDescriptor() 143 bool RegTypeCache::MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise) { in MatchDescriptor() argument 145 if (descriptor != entry->descriptor_) { in MatchDescriptor() 157 ObjPtr<mirror::Class> RegTypeCache::ResolveClass(const char* descriptor, in ResolveClass() argument [all …]
|
D | reg_type.h | 312 const std::string_view& descriptor, in RegType() argument 314 : descriptor_(descriptor), in RegType() 360 const std::string_view& descriptor, in ConflictType() argument 362 : RegType(klass, descriptor, cache_id) { in ConflictType() 381 const std::string_view& descriptor, in UndefinedType() argument 383 : RegType(klass, descriptor, cache_id) { in UndefinedType() 391 const std::string_view& descriptor, 400 const std::string_view& descriptor, 414 const std::string_view& descriptor, in IntegerType() argument 416 : Cat1Type(klass, descriptor, cache_id) { in IntegerType() [all …]
|
D | method_verifier_test.cc | 44 void VerifyClass(const std::string& descriptor) in VerifyClass() argument 46 ASSERT_FALSE(descriptor.empty()); in VerifyClass() 50 hs.NewHandle(class_linker_->FindSystemClass(self, descriptor.c_str()))); in VerifyClass() 68 if (descriptor.starts_with("Ljava/lang/invoke")) { in VerifyClass() 82 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile() local 83 VerifyClass(descriptor); in VerifyDexFile()
|
D | reg_type_cache.h | 79 const RegType* InsertClass(const std::string_view& descriptor, 84 const RegType& FromClass(const char* descriptor, ObjPtr<mirror::Class> klass, bool precise) 92 const RegType& FromDescriptor(Handle<mirror::ClassLoader> loader, const char* descriptor) 180 ObjPtr<mirror::Class> ResolveClass(const char* descriptor, Handle<mirror::ClassLoader> loader) 182 bool MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise) 187 const RegType& From(Handle<mirror::ClassLoader> loader, const char* descriptor)
|
D | reg_type.cc | 44 const std::string_view& descriptor, in PrimitiveType() argument 46 : RegType(klass, descriptor, cache_id) { in PrimitiveType() 48 CHECK(!descriptor.empty()); in PrimitiveType() 52 const std::string_view& descriptor, in Cat1Type() argument 54 : PrimitiveType(klass, descriptor, cache_id) { in Cat1Type() 58 const std::string_view& descriptor, in Cat2Type() argument 60 : PrimitiveType(klass, descriptor, cache_id) { in Cat2Type() 129 const std::string_view& descriptor, in PreciseReferenceType() argument 131 : RegType(klass, descriptor, cache_id) { in PreciseReferenceType() 727 const char* descriptor = join_class->GetDescriptor(&temp); in Merge() local [all …]
|
D | method_verifier.cc | 179 void UninstantiableError(const char* descriptor) { in UninstantiableError() argument 181 << "non-instantiable klass " << descriptor; in UninstantiableError() 671 const char* descriptor in GetDeclaringClass() local 673 declaring_class_ = ®_types_.FromDescriptor(class_loader_, descriptor); in GetDeclaringClass() 690 const RegType& FromClass(const char* descriptor, ObjPtr<mirror::Class> klass, bool precise) in FromClass() argument 695 << "non-instantiable klass " << descriptor; in FromClass() 698 return reg_types_.FromClass(descriptor, klass, precise); in FromClass() 1289 const std::string_view descriptor = dex_file_->GetTypeDescriptorView(idx); in CheckNewInstance() local 1290 if (UNLIKELY(descriptor[0] != 'L')) { in CheckNewInstance() 1291 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "can't call new-instance on type '" << descriptor << "'"; in CheckNewInstance() [all …]
|
/art/runtime/native/ |
D | java_lang_VMClassLoader.cc | 48 const char* descriptor, in LookupClass() argument 53 return cl->LookupClass(self, descriptor, hash, class_loader); in LookupClass() 58 const char* descriptor, in FindClassInPathClassLoader() argument 63 if (cl->FindClassInBaseDexClassLoader(self, descriptor, hash, class_loader, &result)) { in FindClassInPathClassLoader() 85 std::string descriptor(DotToDescriptor(name.c_str())); in VMClassLoader_findLoadedClass() local 86 const size_t descriptor_hash = ComputeModifiedUtf8Hash(descriptor.c_str()); in VMClassLoader_findLoadedClass() 90 descriptor.c_str(), in VMClassLoader_findLoadedClass() 117 descriptor.c_str(), in VMClassLoader_findLoadedClass()
|
/art/test/979-const-method-handle/src/ |
D | Main.java | 112 descriptor = "(Ljava/lang/String;)V") 122 descriptor = "Ljava/lang/String;") 132 descriptor = "Ljava/lang/String;") 142 descriptor = "D") 152 descriptor = "D") 162 descriptor = "Ljava/lang/String;") 174 descriptor = "I") 184 descriptor = "()Ljava/lang/Object;") 194 descriptor = "()V") 204 descriptor = "I")
|
/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/tools/ahat/src/test-dump/android/os/ |
D | Binder.java | 41 public Binder(String descriptor) { in Binder() argument 42 mDescriptor = descriptor; in Binder()
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | AhatClassInstance.java | 208 String descriptor = getBinderDescriptor(); in getBinderTokenDescriptor() local 209 if (descriptor == null) { in getBinderTokenDescriptor() 213 if (isInstanceOfClass(descriptor + "$Stub")) { in getBinderTokenDescriptor() 219 return descriptor; in getBinderTokenDescriptor() 223 String descriptor = getBinderDescriptor(); in getBinderStubInterfaceName() local 224 if (descriptor == null || descriptor.isEmpty()) { in getBinderStubInterfaceName() 231 if (isInstanceOfClass(descriptor + "$Stub")) { in getBinderStubInterfaceName() 232 return descriptor; in getBinderStubInterfaceName()
|
/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/test/647-jni-get-field-id/ |
D | expected-stdout.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/tools/ |
D | pylibdexfile.py | 65 def descriptor(self): member in DexClass 102 def descriptor(self): member in Method 108 lambda a: DexClass(a.strip()).descriptor, arg_str.split(",")) 113 cls=class_only.descriptor, 116 ret=ret.descriptor)
|
/art/openjdkjvmti/ |
D | ti_class_definition.cc | 81 std::string descriptor(m_klass->GetDescriptor(&descriptor_store)); in InitCommon() local 82 name_ = descriptor.substr(1, descriptor.size() - 2); in InitCommon() 157 jvmtiError ArtClassDefinition::InitFirstLoad(const char* descriptor, in InitFirstLoad() argument 166 std::string descriptor_str(descriptor); in InitFirstLoad()
|
D | ti_method.cc | 594 std::string descriptor; in Run() local 596 jvmtiError err = GetSlotType(method, pc, &descriptor, &slot_type); in Run() 602 err = GetTypeError(method, slot_type, descriptor); in Run() 623 const std::string& descriptor) 628 /*out*/std::string* descriptor, 634 /*out*/ std::string* descriptor, in InferSlotTypeFromVerifier() argument 663 *descriptor = (rt.HasClass() ? rt.GetDescriptor() : "Ljava/lang/Object;"); in InferSlotTypeFromVerifier() 667 *descriptor = "I"; in InferSlotTypeFromVerifier() 671 *descriptor = "I"; in InferSlotTypeFromVerifier() 675 *descriptor = "J"; in InferSlotTypeFromVerifier() [all …]
|
/art/tools/art_verifier/ |
D | art_verifier.cc | 237 const char* descriptor = accessor.GetDescriptor(); in ExecuteWithRuntime() local 238 h_klass.Assign(class_linker->FindClass(soa.Self(), descriptor, h_loader)); in ExecuteWithRuntime() 241 LOG(ERROR) << "Warning: could not load " << descriptor; in ExecuteWithRuntime() 261 LOG(INFO) << descriptor << ": " << res << " " << error_msg; in ExecuteWithRuntime()
|
/art/dex2oat/driver/ |
D | compiler_driver.cc | 696 const char* descriptor = dex_file.GetTypeDescriptor(type_index); in InitializeTypeCheckBitstrings() local 701 if (descriptor[0] == 'L' && driver->GetCompilerOptions().IsImageClass(descriptor)) { in InitializeTypeCheckBitstrings() 706 CHECK(klass != nullptr) << descriptor << " should have been previously resolved."; in InitializeTypeCheckBitstrings() 1153 std::string_view descriptor(klass->GetDescriptor(&temp)); in operator ()() local 1155 image_classes_->insert(std::string(descriptor)); // Does nothing if already present. in operator ()() 1157 auto it = image_classes_->find(descriptor); in operator ()() 1160 << " class from image classes: " << descriptor; in operator ()() 1216 std::string_view descriptor = klass->GetDescriptor(&temp); in VerifyClassLoaderClassesAreImageClasses() local 1217 CHECK(image_classes->find(descriptor) != image_classes->end()); in VerifyClassLoaderClassesAreImageClasses() 1261 const std::string& descriptor(*it); in LoadImageClasses() local [all …]
|