Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 25 of 96) sorted by relevance

1234

/art/libdexfile/dex/
Ddescriptors_names.cc29 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 …]
Ddescriptors_names.h31 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);
Dtype_lookup_table_test.cc44 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()
Ddescriptors_names_test.cc86 std::vector<uint8_t> descriptor( in TEST_F() local
88 EXPECT_TRUE(IsValidDescriptor(reinterpret_cast<char*>(&descriptor[0]))); in TEST_F()
/art/runtime/
Dclass_root.cc23 #define CLASS_ROOT_DESCRIPTOR(name, descriptor, mirror_type) descriptor, in GetClassRootDescriptor() argument
31 const char* descriptor = class_roots_descriptors[static_cast<size_t>(class_root)]; in GetClassRootDescriptor() local
32 CHECK(descriptor != nullptr); in GetClassRootDescriptor()
33 return descriptor; in GetClassRootDescriptor()
Dclass_table.cc60 mirror::Class* ClassTable::UpdateClass(const char* descriptor, mirror::Class* klass, size_t hash) { in UpdateClass() argument
63 DescriptorHashPair pair(descriptor, hash); in UpdateClass()
68 LOG(FATAL) << "Updating class found in frozen table " << descriptor; in UpdateClass()
71 LOG(FATAL) << "Updating class not found " << descriptor; in UpdateClass()
74 CHECK_NE(existing, klass) << descriptor; in UpdateClass()
75 CHECK(!existing->IsResolved()) << descriptor; in UpdateClass()
76 CHECK_EQ(klass->GetStatus(), ClassStatus::kResolving) << descriptor; in UpdateClass()
77 CHECK(!klass->IsTemp()) << descriptor; in UpdateClass()
124 mirror::Class* ClassTable::Lookup(const char* descriptor, size_t hash) { in Lookup() argument
125 DescriptorHashPair pair(descriptor, hash); in Lookup()
[all …]
Dart_field.cc47 ObjPtr<mirror::Class> ArtField::ProxyFindSystemClass(const char* descriptor) { in ProxyFindSystemClass() argument
50 Thread::Current(), descriptor, /* class_loader= */ nullptr); in ProxyFindSystemClass()
Dclass_linker.cc159 static bool HasInitWithString(Thread* self, ClassLinker* class_linker, const char* descriptor) in HasInitWithString() argument
165 ObjPtr<mirror::Class> exception_class = class_linker->FindClass(self, descriptor, class_loader); in HasInitWithString()
202 const char* descriptor = obj->AsClass()->GetDescriptor(&temp); in HandleEarlierVerifyError() local
204 if (HasInitWithString(self, class_linker, descriptor)) { in HandleEarlierVerifyError()
205 self->ThrowNewException(descriptor, c->PrettyDescriptor().c_str()); in HandleEarlierVerifyError()
207 self->ThrowNewException(descriptor, nullptr); in HandleEarlierVerifyError()
429 void ClassLinker::CheckSystemClass(Thread* self, Handle<mirror::Class> c1, const char* descriptor) { in CheckSystemClass() argument
430 ObjPtr<mirror::Class> c2 = FindSystemClass(self, descriptor); in CheckSystemClass()
432 LOG(FATAL) << "Could not find class " << descriptor; in CheckSystemClass()
439 LOG(FATAL) << "InitWithoutImage: Class mismatch for " << descriptor in CheckSystemClass()
[all …]
/art/runtime/jit/
Ddebugger_interface.cc148 static void ActionSeqlock(JITDescriptor& descriptor) { in ActionSeqlock() argument
149 DCHECK_EQ(descriptor.action_seqlock_.load() & 1, 0u) << "Already locked"; in ActionSeqlock()
150 descriptor.action_seqlock_.fetch_add(1, std::memory_order_relaxed); in ActionSeqlock()
156 static void ActionSequnlock(JITDescriptor& descriptor) { in ActionSequnlock() argument
157 DCHECK_EQ(descriptor.action_seqlock_.load() & 1, 1u) << "Already unlocked"; in ActionSequnlock()
160 descriptor.action_seqlock_.fetch_add(1, std::memory_order_relaxed); in ActionSequnlock()
164 JITDescriptor& descriptor, in CreateJITCodeEntryInternal() argument
178 uint64_t timestamp = std::max(descriptor.action_timestamp_ + 1, NanoTime()); in CreateJITCodeEntryInternal()
180 JITCodeEntry* head = descriptor.head_.load(std::memory_order_relaxed); in CreateJITCodeEntryInternal()
190 ActionSeqlock(descriptor); in CreateJITCodeEntryInternal()
[all …]
/art/runtime/verifier/
Dmethod_verifier_test.cc37 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()
Dreg_type.h322 const std::string_view& descriptor, in RegType() argument
324 : descriptor_(descriptor), in RegType()
392 const std::string_view& descriptor,
405 const std::string_view& descriptor, in ConflictType() argument
407 : RegType(klass, descriptor, cache_id) { in ConflictType()
428 const std::string_view& descriptor,
441 const std::string_view& descriptor, in UndefinedType() argument
443 : RegType(klass, descriptor, cache_id) { in UndefinedType()
453 const std::string_view& descriptor,
462 const std::string_view& descriptor,
[all …]
Dreg_type_cache.cc81 const char* descriptor, in FromDescriptor() argument
84 if (descriptor[1] == '\0') { in FromDescriptor()
85 switch (descriptor[0]) { in FromDescriptor()
106 } else if (descriptor[0] == 'L' || descriptor[0] == '[') { in FromDescriptor()
107 return From(loader, descriptor, precise); in FromDescriptor()
138 bool RegTypeCache::MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise) { in MatchDescriptor() argument
140 if (descriptor != entry->descriptor_) { in MatchDescriptor()
152 ObjPtr<mirror::Class> RegTypeCache::ResolveClass(const char* descriptor, in ResolveClass() argument
162 klass = class_linker->FindClass(self, descriptor, class_loader); in ResolveClass()
164 klass = class_linker->LookupClass(self, descriptor, loader); in ResolveClass()
[all …]
Dreg_type.cc58 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 …]
Dreg_type_cache.h77 const RegType& From(ObjPtr<mirror::ClassLoader> loader, const char* descriptor, bool precise)
83 const RegType* InsertClass(const std::string_view& descriptor,
88 const RegType& FromClass(const char* descriptor, ObjPtr<mirror::Class> klass, bool precise)
97 const char* descriptor,
165 ObjPtr<mirror::Class> ResolveClass(const char* descriptor, ObjPtr<mirror::ClassLoader> loader)
167 bool MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise)
Dmethod_verifier.cc158 void UninstantiableError(const char* descriptor) { in UninstantiableError() argument
160 << "non-instantiable klass " << descriptor; in UninstantiableError()
562 const RegType& FromClass(const char* descriptor, ObjPtr<mirror::Class> klass, bool precise)
1252 const char* descriptor = dex_file_->StringByTypeIdx(idx); in CheckNewInstance() local
1253 if (UNLIKELY(descriptor[0] != 'L')) { in CheckNewInstance()
1254 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "can't call new-instance on type '" << descriptor << "'"; in CheckNewInstance()
1256 } else if (UNLIKELY(strcmp(descriptor, "Ljava/lang/Class;") == 0)) { in CheckNewInstance()
1302 const char* descriptor = dex_file_->StringByTypeIdx(idx); in CheckNewArray() local
1303 const char* cp = descriptor; in CheckNewArray()
1310 << "can't new-array class '" << descriptor << "' (not an array)"; in CheckNewArray()
[all …]
/art/runtime/native/
Djava_lang_VMClassLoader.cc43 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/
DMain.java104 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/
DBinder.java41 public Binder(String descriptor) { in Binder() argument
42 mDescriptor = descriptor; in Binder()
/art/test/ti-agent/
Djni_binder.cc126 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/
DAhatClassInstance.java164 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/
Dexpected.txt26 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/
Dcompiler_options.cc145 bool CompilerOptions::IsImageClass(const char* descriptor) const { in IsImageClass()
149 return image_classes_.find(std::string_view(descriptor)) != image_classes_.end(); in IsImageClass()
177 const char* descriptor = dex_file.GetClassDescriptor(dex_file.GetClassDef(class_def_idx)); in IsMethodVerifiedWithoutFailures() local
181 bool is_system_class = class_linker->FindSystemClass(self, descriptor) != nullptr; in IsMethodVerifiedWithoutFailures()
/art/openjdkjvmti/
Dti_class_definition.cc128 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()
Dti_class.cc89 const char* descriptor, in MakeSingleDexFile() argument
101 "Unable to allocate dex file for transformation of %s", descriptor).c_str()); in MakeSingleDexFile()
110 descriptor); in MakeSingleDexFile()
123 LOG(WARNING) << "Unable to load modified dex file for " << descriptor << ": " << error_msg; in MakeSingleDexFile()
126 descriptor, in MakeSingleDexFile()
136 descriptor); in MakeSingleDexFile()
162 void ClassPreDefine(const char* descriptor, in ClassPreDefine()
176 if (descriptor[0] != 'L') { in ClassPreDefine()
186 LOG(WARNING) << "Ignoring load of class <" << descriptor << "> as it is being loaded during " in ClassPreDefine()
193 def.InitFirstLoad(descriptor, class_loader, initial_dex_file); in ClassPreDefine()
[all …]
/art/tools/art_verifier/
Dart_verifier.cc238 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()

1234