Searched defs:descriptor (Results 1 - 25 of 25) sorted by relevance

/art/runtime/verifier/
H A Dmethod_verifier_test.cc30 void VerifyClass(const std::string& descriptor)
32 ASSERT_TRUE(descriptor != NULL);
33 mirror::Class* klass = class_linker_->FindSystemClass(descriptor.c_str());
48 const char* descriptor = dex->GetClassDescriptor(class_def); local
49 VerifyClass(descriptor);
H A Dreg_type_cache-inl.h27 Type* RegTypeCache::CreatePrimitiveTypeInstance(const std::string& descriptor) { argument
30 if (!descriptor.empty()) {
31 klass = art::Runtime::Current()->GetClassLinker()->FindSystemClass(descriptor.c_str());
33 Type* entry = Type::CreateInstance(klass, descriptor, RegTypeCache::primitive_count_);
H A Dreg_type_cache.cc39 // We weren't looking for a precise reference, as we're looking up based on a descriptor, but
40 // we found a matching entry based on the descriptor. Return the precise entry in that case.
63 const RegType& RegTypeCache::FromDescriptor(mirror::ClassLoader* loader, const char* descriptor, argument
66 if (descriptor[1] == '\0') {
67 switch (descriptor[0]) {
88 } else if (descriptor[0] == 'L' || descriptor[0] == '[') {
89 return From(loader, descriptor, precise);
120 bool RegTypeCache::MatchDescriptor(size_t idx, const char* descriptor, bool precise) { argument
122 if (entry->descriptor_ != descriptor) {
134 ResolveClass(const char* descriptor, mirror::ClassLoader* loader) argument
160 From(mirror::ClassLoader* loader, const char* descriptor, bool precise) argument
207 FromClass(const char* descriptor, mirror::Class* klass, bool precise) argument
[all...]
H A Dreg_type.cc67 PrimitiveType::PrimitiveType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id)
69 : RegType(klass, descriptor, cache_id) {
71 CHECK(!descriptor.empty());
74 Cat1Type::Cat1Type(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id)
76 : PrimitiveType(klass, descriptor, cache_id) {
79 Cat2Type::Cat2Type(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id)
81 : PrimitiveType(klass, descriptor, cache_id) {
145 DoubleHiType* DoubleHiType::CreateInstance(mirror::Class* klass, const std::string& descriptor, argument
148 instance_ = new DoubleHiType(klass, descriptor, cache_id);
165 DoubleLoType* DoubleLoType::CreateInstance(mirror::Class* klass, const std::string& descriptor, argument
185 CreateInstance(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
193 CreateInstance(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
225 CreateInstance(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
244 CreateInstance(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
264 CreateInstance(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
284 CreateInstance(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
304 CreateInstance(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
324 CreateInstance(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
344 CreateInstance(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
368 CreateInstance(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
388 PreciseReferenceType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) argument
[all...]
H A Dreg_type.h273 RegType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id)
275 : descriptor_(descriptor), klass_(klass), cache_id_(cache_id) {
307 static ConflictType* CreateInstance(mirror::Class* klass, const std::string& descriptor,
315 ConflictType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id)
317 : RegType(klass, descriptor, cache_id) {
337 static UndefinedType* CreateInstance(mirror::Class* klass, const std::string& descriptor,
345 UndefinedType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id)
347 : RegType(klass, descriptor, cache_id) {
358 PrimitiveType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id)
364 Cat1Type(mirror::Class* klass, const std::string& descriptor, uint16_
681 UninitializedType(mirror::Class* klass, const std::string& descriptor, uint32_t allocation_pc, uint16_t cache_id) argument
[all...]
H A Dmethod_verifier.cc730 const char* descriptor = dex_file_->StringByTypeIdx(idx); local
731 if (descriptor[0] != 'L') {
732 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "can't call new-instance on type '" << descriptor << "'";
763 const char* descriptor = dex_file_->StringByTypeIdx(idx); local
764 const char* cp = descriptor;
771 << "can't new-array class '" << descriptor << "' (not an array)";
776 << "can't new-array class '" << descriptor << "' (exceeds limit)";
1135 static bool IsPrimitiveDescriptor(char descriptor) { argument
1136 switch (descriptor) {
1178 const char* descriptor local
1184 << " args, found more (" << descriptor << ")"; local
1237 const char* descriptor = dex_file_->GetReturnTypeDescriptor(proto_id); local
2134 const char* descriptor; local
2226 const char* descriptor; local
2283 const char* descriptor; local
2557 const char* descriptor = MethodHelper(called_method).GetReturnTypeDescriptor(); local
2822 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); local
3079 const char* descriptor = local
3211 const char* descriptor = local
3510 const char* descriptor; local
3564 const char* descriptor; local
3661 const char* descriptor = FieldHelper(field).GetTypeDescriptor(); local
3705 const char* descriptor = FieldHelper(field).GetTypeDescriptor(); local
3838 const char* descriptor = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(return_type_idx)); local
3845 const char* descriptor local
[all...]
/art/compiler/sea_ir/types/
H A Dtype_inference.cc23 bool TypeInference::IsPrimitiveDescriptor(char descriptor) { argument
24 switch (descriptor) {
43 const char* descriptor = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(method_id.class_idx_)); local
44 declaring_class_ = &(type_cache_->FromDescriptor(NULL, descriptor, false));
53 const char* descriptor = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(method_id.class_idx_)); local
54 declaring_class_ = &(type_cache_->FromDescriptor(NULL, descriptor, false));
60 const char* descriptor = dex_file_->StringByTypeIdx(return_type_idx); local
62 const Type& return_type = type_cache_->FromDescriptor(NULL, descriptor, false);
94 const char* descriptor = iterator.GetDescriptor(); local
95 if (descriptor
[all...]
/art/compiler/driver/
H A Dcompiler_driver_test.cc79 const char* descriptor = dex_file.GetClassDescriptor(class_def); local
81 mirror::Class* c = class_linker->FindClass(descriptor, soa.Decode<mirror::ClassLoader*>(class_loader));
H A Dcompiler_driver.cc504 const char* descriptor = dex_file.GetClassDescriptor(class_def); local
506 mirror::Class* klass = class_linker->FindClass(descriptor, class_loader);
599 bool CompilerDriver::IsImageClass(const char* descriptor) const {
600 DCHECK(descriptor != NULL);
604 return image_classes_->find(descriptor) != image_classes_->end();
685 std::string descriptor(*it);
686 SirtRef<mirror::Class> klass(self, class_linker->FindSystemClass(descriptor.c_str()));
689 VLOG(compiler) << "Failed to find class " << descriptor;
715 const char* descriptor = dex_file->GetTypeDescriptor(type_id); local
716 LOG(FATAL) << "Failed to resolve class " << descriptor;
736 const char* descriptor = kh.GetDescriptor(); local
1218 const DexFile::StringId* descriptor = dexfile->FindStringId(cm_descriptor); local
1445 const char* descriptor = dex_file.GetClassDescriptor(class_def); local
1642 const char* descriptor = dex_file.GetClassDescriptor(class_def); local
2114 const char* descriptor = dex_file.GetClassDescriptor(class_def); local
2194 const char* descriptor = class_initializer_black_list[i]; local
[all...]
/art/compiler/
H A Dimage_test.cc150 const char* descriptor = dex->GetClassDescriptor(class_def); local
151 mirror::Class* klass = class_linker_->FindSystemClass(descriptor);
152 EXPECT_TRUE(klass != NULL) << descriptor;
153 EXPECT_LT(image_begin, reinterpret_cast<byte*>(klass)) << descriptor;
154 if (image_classes.find(descriptor) != image_classes.end()) {
156 EXPECT_LT(reinterpret_cast<byte*>(klass), image_end) << descriptor; local
159 EXPECT_GT(reinterpret_cast<byte*>(klass), image_end) << descriptor; local
H A Doat_test.cc125 const char* descriptor = dex_file->GetClassDescriptor(class_def); local
129 mirror::Class* klass = class_linker->FindClass(descriptor, NULL);
/art/runtime/native/
H A Ddalvik_system_DexFile.cc162 const std::string descriptor(DotToDescriptor(class_name.c_str()));
163 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor.c_str());
171 mirror::Class* result = class_linker->DefineClass(descriptor.c_str(), class_loader, *dex_file,
190 const char* descriptor = dex_file->GetClassDescriptor(class_def); local
191 class_names.push_back(DescriptorToDot(descriptor));
H A Ddalvik_system_VMRuntime.cc72 std::string descriptor; local
73 descriptor += "[";
74 descriptor += ClassHelper(element_class).GetDescriptor();
75 mirror::Class* array_class = class_linker->FindClass(descriptor.c_str(), NULL);
/art/runtime/
H A Dclass_linker.h65 bool IsInBootClassPath(const char* descriptor);
67 // Finds a class by its descriptor, loading it if necessary.
69 mirror::Class* FindClass(const char* descriptor, mirror::ClassLoader* class_loader)
72 mirror::Class* FindSystemClass(const char* descriptor)
76 mirror::Class* DefineClass(const char* descriptor, mirror::ClassLoader* class_loader,
80 // Finds a class by its descriptor, returning NULL if it isn't wasn't loaded
82 mirror::Class* LookupClass(const char* descriptor, const mirror::ClassLoader* class_loader)
86 // Finds all the classes with the given descriptor, regardless of ClassLoader.
87 void LookupClasses(const char* descriptor, std::vector<mirror::Class*>& classes)
95 bool RemoveClass(const char* descriptor, cons
608 const char* descriptor = class_roots_descriptors_[class_root]; local
[all...]
H A Dclass_linker_test.cc42 void AssertNonExistentClass(const std::string& descriptor)
44 EXPECT_TRUE(class_linker_->FindSystemClass(descriptor.c_str()) == NULL);
53 void AssertPrimitiveClass(const std::string& descriptor)
55 AssertPrimitiveClass(descriptor, class_linker_->FindSystemClass(descriptor.c_str()));
58 void AssertPrimitiveClass(const std::string& descriptor, const mirror::Class* primitive)
65 ASSERT_STREQ(descriptor.c_str(), primitive_ch.GetDescriptor());
181 void AssertClass(const std::string& descriptor, mirror::Class* klass)
184 EXPECT_STREQ(descriptor.c_str(), kh.GetDescriptor());
185 if (descriptor
325 const char* descriptor = dex->GetClassDescriptor(class_def); local
331 const char* descriptor = dex->GetTypeDescriptor(type_id); local
663 std::string descriptor; local
[all...]
H A Ddex_file.cc51 DexFile::ClassPathEntry DexFile::FindInClassPath(const char* descriptor, argument
55 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor);
334 const DexFile::ClassDef* DexFile::FindClassDef(const char* descriptor) const {
339 const StringId* string_id = FindStringId(descriptor);
546 std::string descriptor; local
547 descriptor += c;
549 if (offset >= end) { // expect some descriptor following [
554 descriptor += c;
558 if (offset >= end) { // unexpected early termination of descriptor
563 descriptor
590 std::string descriptor; local
677 const char* descriptor = GetMethodDeclaringClassDescriptor(GetMethodId(method_idx)); local
695 const char* descriptor = it.GetDescriptor(); local
[all...]
H A Ddex_file_verifier.cc68 static bool CheckShortyDescriptorMatch(char shorty_char, const char* descriptor, argument
85 if ((descriptor[0] != shorty_char) || (descriptor[1] != '\0')) {
86 LOG(ERROR) << StringPrintf("Shorty vs. primitive type mismatch: '%c', '%s'", shorty_char, descriptor);
91 if ((descriptor[0] != 'L') && (descriptor[0] != '[')) {
92 LOG(ERROR) << StringPrintf("Shorty vs. type mismatch: '%c', '%s'", shorty_char, descriptor);
1380 const char* descriptor = dex_file_->StringDataByIdx(item->descriptor_idx_); local
1382 // Check that the descriptor is a valid type.
1383 if (!IsValidDescriptor(descriptor)) {
1418 const char* descriptor = it.GetDescriptor(); local
1472 const char* descriptor = dex_file_->StringByTypeIdx(item->class_idx_); local
1519 const char* descriptor = dex_file_->StringByTypeIdx(item->class_idx_); local
1558 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); local
[all...]
H A Dutils.cc232 std::string PrettyDescriptor(const std::string& descriptor) { argument
234 const char* c = descriptor.c_str();
259 default: return descriptor;
593 std::string descriptor(class_name);
594 std::replace(descriptor.begin(), descriptor.end(), '.', '/');
595 if (descriptor.length() > 0 && descriptor[0] != '[') {
596 descriptor = "L" + descriptor
601 DescriptorToDot(const char* descriptor) argument
611 DescriptorToName(const char* descriptor) argument
[all...]
H A Dthread.cc1429 const char* descriptor = mh.GetDeclaringClassDescriptor(); local
1430 CHECK(descriptor != nullptr);
1431 std::string class_name(PrettyDescriptor(descriptor));
H A Dclass_linker.cc337 SetClassRoot(kPrimitiveChar, char_class.get()); // needs descriptor
1291 bool ClassLinker::IsInBootClassPath(const char* descriptor) { argument
1292 DexFile::ClassPathEntry pair = DexFile::FindInClassPath(descriptor, boot_class_path_);
1296 mirror::Class* ClassLinker::FindSystemClass(const char* descriptor) { argument
1297 return FindClass(descriptor, NULL);
1300 mirror::Class* ClassLinker::FindClass(const char* descriptor, mirror::ClassLoader* class_loader) { argument
1301 DCHECK_NE(*descriptor, '\0') << "descriptor is empty string";
1305 if (descriptor[1] == '\0') {
1308 return FindPrimitiveClass(descriptor[
1382 DefineClass(const char* descriptor, mirror::ClassLoader* class_loader, const DexFile& dex_file, const DexFile::ClassDef& dex_class_def) argument
1474 const char* descriptor = dex_file.GetFieldTypeDescriptor(field_id); local
1725 const char* descriptor = dex_file.GetClassDescriptor(dex_class_def); local
2024 const char* descriptor = Primitive::Descriptor(type); local
2043 CreateArrayClass(const char* descriptor, mirror::ClassLoader* class_loader) argument
2193 InsertClass(const char* descriptor, mirror::Class* klass, size_t hash) argument
2224 RemoveClass(const char* descriptor, const mirror::ClassLoader* class_loader) argument
2240 LookupClass(const char* descriptor, const mirror::ClassLoader* class_loader) argument
2270 LookupClassFromTableLocked(const char* descriptor, const mirror::ClassLoader* class_loader, size_t hash) argument
2321 const char* descriptor = kh.GetDescriptor(); local
2338 LookupClassFromImage(const char* descriptor) argument
2380 LookupClasses(const char* descriptor, std::vector<mirror::Class*>& result) argument
2553 const char* descriptor = ClassHelper(klass).GetDescriptor(); local
3185 const char* descriptor = it.GetDescriptor(); local
3197 const char* descriptor = dex_file.GetReturnTypeDescriptor(proto_id); local
3207 IsSameDescriptorInDifferentClassContexts(const char* descriptor, const mirror::Class* klass1, const mirror::Class* klass2) argument
3979 const char* descriptor = dex_file.StringByTypeIdx(type_idx); local
[all...]
H A Djni_internal.cc644 std::string descriptor(NormalizeJniClassDescriptor(name));
649 c = class_linker->FindClass(descriptor.c_str(), cl);
651 c = class_linker->FindSystemClass(descriptor.c_str());
2119 std::string descriptor; local
2120 descriptor += "[";
2121 descriptor += ClassHelper(element_class).GetDescriptor();
2125 Class* array_class = class_linker->FindClass(descriptor.c_str(),
H A Ddebugger.cc271 static JDWP::JdwpTag BasicTagFromDescriptor(const char* descriptor) { argument
272 // JDWP deliberately uses the descriptor characters' ASCII values for its enum.
274 return static_cast<JDWP::JdwpTag>(descriptor[0]);
899 void Dbg::FindLoadedClassBySignature(const char* descriptor, std::vector<JDWP::RefTypeId>& ids) { argument
901 Runtime::Current()->GetClassLinker()->LookupClasses(descriptor, classes);
1011 std::string descriptor(ClassHelper(a->GetClass()).GetDescriptor());
1012 JDWP::JdwpTag tag = BasicTagFromDescriptor(descriptor.c_str() + 1);
1068 std::string descriptor(ClassHelper(dst->GetClass()).GetDescriptor());
1069 JDWP::JdwpTag tag = BasicTagFromDescriptor(descriptor.c_str() + 1);
1365 static void Callback(void* context, uint16_t slot, uint32_t startAddress, uint32_t endAddress, const char* name, const char* descriptor, cons argument
[all...]
/art/runtime/jdwp/
H A Djdwp_handler.cc399 std::string descriptor; local
401 JDWP::JdwpError status = Dbg::GetClassInfo(classes[i], &type_tag, &class_status, &descriptor);
409 expandBufAddUtf8String(pReply, descriptor);
/art/compiler/dex/quick/
H A Dcodegen_util.cc228 void Mir2Lir::DumpMappingTable(const char* table_name, const std::string& descriptor, argument
233 descriptor.c_str(), name.c_str(), signature.c_str(), v.size()));
275 std::string descriptor(cu_->dex_file->GetMethodDeclaringClassDescriptor(method_id));
278 DumpMappingTable("PC2Dex_MappingTable", descriptor, name, signature, pc2dex_mapping_table_);
279 DumpMappingTable("Dex2PC_MappingTable", descriptor, name, signature, dex2pc_mapping_table_);
/art/oatdump/
H A Doatdump.cc255 const char* descriptor = dex_file->GetClassDescriptor(class_def); local
258 os << StringPrintf("%zd: %s (type_idx=%d) (", class_def_index, descriptor, class_def.class_idx_)
829 const char* descriptor = fh.GetTypeDescriptor(); local
831 if (descriptor[0] != 'L' && descriptor[0] != '[') {
848 os << StringPrintf("null %s\n", PrettyDescriptor(descriptor).c_str());
855 os << StringPrintf("%p %s\n", value, PrettyDescriptor(descriptor).c_str());
1129 void Update(const std::string& descriptor, size_t object_bytes) { argument
1130 SizeAndCountTable::iterator it = sizes_and_counts.find(descriptor);
1135 sizes_and_counts.Put(descriptor, SizeAndCoun
[all...]

Completed in 476 milliseconds