/art/runtime/verifier/ |
H A D | method_verifier_test.cc | 36 void VerifyClass(const std::string& descriptor) 38 ASSERT_TRUE(descriptor != nullptr); 40 mirror::Class* klass = class_linker_->FindSystemClass(self, descriptor.c_str()); 47 if (android::base::StartsWith(descriptor, "Ljava/lang/invoke")) { 61 const char* descriptor = dex.GetClassDescriptor(class_def); local 62 VerifyClass(descriptor);
|
H A D | reg_type.h | 273 const StringPiece& descriptor, 275 : descriptor_(descriptor), 337 const StringPiece& descriptor, 345 ConflictType(mirror::Class* klass, const StringPiece& descriptor, 347 : RegType(klass, descriptor, cache_id) { 368 const StringPiece& descriptor, 376 UndefinedType(mirror::Class* klass, const StringPiece& descriptor, 378 : RegType(klass, descriptor, cache_id) { 387 PrimitiveType(mirror::Class* klass, const StringPiece& descriptor, 395 Cat1Type(mirror::Class* klass, const StringPiece& descriptor, 738 UninitializedType(mirror::Class* klass, const StringPiece& descriptor, uint32_t allocation_pc, uint16_t cache_id) argument [all...] |
H A D | reg_type_cache.cc | 45 // We weren't looking for a precise reference, as we're looking up based on a descriptor, but 46 // we found a matching entry based on the descriptor. Return the precise entry in that case. 75 const char* descriptor, 78 if (descriptor[1] == '\0') { 79 switch (descriptor[0]) { 100 } else if (descriptor[0] == 'L' || descriptor[0] == '[') { 101 return From(loader, descriptor, precise); 132 bool RegTypeCache::MatchDescriptor(size_t idx, const StringPiece& descriptor, bool precise) { argument 134 if (descriptor ! 74 FromDescriptor(mirror::ClassLoader* loader, const char* descriptor, bool precise) argument 146 ResolveClass(const char* descriptor, mirror::ClassLoader* loader) argument 172 From(mirror::ClassLoader* loader, const char* descriptor, bool precise) argument 244 InsertClass(const StringPiece& descriptor, mirror::Class* klass, bool precise) argument 256 FromClass(const char* descriptor, mirror::Class* klass, bool precise) argument 311 CreatePrimitiveTypeInstance(const std::string& descriptor) argument 621 const char* descriptor = klass->GetDescriptor(&temp); local [all...] |
H A D | reg_type.cc | 55 PrimitiveType::PrimitiveType(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 56 : RegType(klass, descriptor, cache_id) { 58 CHECK(!descriptor.empty()); 61 Cat1Type::Cat1Type(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 62 : PrimitiveType(klass, descriptor, cache_id) { 65 Cat2Type::Cat2Type(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 66 : PrimitiveType(klass, descriptor, cache_id) { 131 const StringPiece& descriptor, 134 instance_ = new DoubleHiType(klass, descriptor, cache_id); 146 const StringPiece& descriptor, 130 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 145 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 160 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 167 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 188 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 202 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 216 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 230 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 244 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 258 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 273 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 291 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 306 PreciseReferenceType(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument [all...] |
H A D | reg_type_cache.h | 59 const RegType& From(mirror::ClassLoader* loader, const char* descriptor, bool precise) 64 // Insert a new class with a specified descriptor, must not already be in the cache. 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) 160 mirror::Class* ResolveClass(const char* descriptor, mirror::ClassLoader* loader) 162 bool MatchDescriptor(size_t idx, const StringPiece& descriptor, bool precise) 176 static const Type* CreatePrimitiveTypeInstance(const std::string& descriptor)
|
H A D | method_verifier.cc | 1301 const char* descriptor = dex_file_->StringByTypeIdx(idx); local 1302 if (descriptor[0] != 'L') { 1303 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "can't call new-instance on type '" << descriptor << "'"; 1305 } else if (strcmp(descriptor, "Ljava/lang/Class;") == 0) { 1347 const char* descriptor = dex_file_->StringByTypeIdx(idx); local 1348 const char* cp = descriptor; 1355 << "can't new-array class '" << descriptor << "' (not an array)"; 1360 << "can't new-array class '" << descriptor << "' (exceeds limit)"; 1689 static bool IsPrimitiveDescriptor(char descriptor) { argument 1690 switch (descriptor) { 1749 const char* descriptor = iterator.GetDescriptor(); local 1755 << " args, found more (" << descriptor << ")"; local 1796 << " args, found more (" << descriptor << ")"; local 1825 const char* descriptor = dex_file_->GetReturnTypeDescriptor(proto_id); local 2918 const char* descriptor = dex_file_->StringByTypeIdx(return_type_idx); local 3011 const char* descriptor; local 3066 const char* descriptor; local 3448 const char* descriptor = called_method->GetReturnTypeDescriptor(); local 3714 UninstantiableError(const char* descriptor) argument 3736 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); local 3742 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); local 3746 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); local 3751 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); local 4555 const char* descriptor = local 4991 const char* descriptor = dex_file_->GetFieldTypeDescriptor(field_id); local 5304 const char* descriptor = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(return_type_idx)); local 5314 const char* descriptor local 5418 FromClass(const char* descriptor, mirror::Class* klass, bool precise) argument [all...] |
/art/runtime/native/ |
H A D | java_lang_VMClassLoader.cc | 36 const char* descriptor, 41 return cl->LookupClass(self, descriptor, hash, class_loader); 47 const char* descriptor, 52 if (cl->FindClassInBaseDexClassLoader(soa, self, descriptor, hash, class_loader, &result)) { 70 std::string descriptor(DotToDescriptor(name.c_str())); 71 const size_t descriptor_hash = ComputeModifiedUtf8Hash(descriptor.c_str()); 75 descriptor.c_str(), 106 descriptor.c_str(),
|
/art/runtime/ |
H A D | type_lookup_table_test.cc | 48 const char* descriptor = pair.first; local 49 size_t hash = ComputeModifiedUtf8Hash(descriptor); 50 uint32_t class_def_idx = table->Lookup(descriptor, hash);
|
H A D | utils.cc | 149 std::string PrettyDescriptor(const char* descriptor) { argument 151 const char* c = descriptor; 176 default: return descriptor; 394 std::string descriptor(class_name); 395 std::replace(descriptor.begin(), descriptor.end(), '.', '/'); 396 if (descriptor.length() > 0 && descriptor[0] != '[') { 397 descriptor = "L" + descriptor 402 DescriptorToDot(const char* descriptor) argument 421 DescriptorToName(const char* descriptor) argument [all...] |
H A D | art_field.cc | 46 ObjPtr<mirror::Class> ArtField::ProxyFindSystemClass(const char* descriptor) { argument 48 return Runtime::Current()->GetClassLinker()->FindSystemClass(Thread::Current(), descriptor);
|
H A D | class_table.cc | 65 mirror::Class* ClassTable::UpdateClass(const char* descriptor, mirror::Class* klass, size_t hash) { argument 68 DescriptorHashPair pair(descriptor, hash); 73 LOG(FATAL) << "Updating class found in frozen table " << descriptor; 76 LOG(FATAL) << "Updating class not found " << descriptor; 79 CHECK_NE(existing, klass) << descriptor; 80 CHECK(!existing->IsResolved()) << descriptor; 81 CHECK_EQ(klass->GetStatus(), mirror::Class::kStatusResolving) << descriptor; 82 CHECK(!klass->IsTemp()) << descriptor; 84 // Update the element in the hash set with the new class. This is safe to do since the descriptor 131 mirror::Class* ClassTable::Lookup(const char* descriptor, size_ argument 185 Remove(const char* descriptor) argument [all...] |
H A D | class_linker.h | 173 // Finds a class by its descriptor, loading it if necessary. 176 const char* descriptor, 181 // Finds a class by its descriptor using the "system" class loader, ie by searching the 183 mirror::Class* FindSystemClass(Thread* self, const char* descriptor) 186 return FindClass(self, descriptor, ScopedNullHandle<mirror::ClassLoader>()); 201 const char* descriptor, 209 // Finds a class by its descriptor, returning null if it isn't wasn't loaded 212 const char* descriptor, 216 return LookupClass(self, descriptor, ComputeModifiedUtf8Hash(descriptor), class_loade [all...] |
H A D | runtime_callbacks.cc | 71 void RuntimeCallbacks::ClassPreDefine(const char* descriptor, argument 83 cb->ClassPreDefine(descriptor,
|
H A D | class_linker-inl.h | 45 std::string descriptor = "["; local 47 descriptor += (*element_class)->GetDescriptor(&temp); 51 ObjPtr<mirror::Class> array_class = FindClass(self, descriptor.c_str(), class_loader);
|
H A D | class_table.h | 94 // Data contains the class pointer GcRoot as well as the low bits of the descriptor hash. 105 // Same class loader and descriptor. 108 // Same descriptor. 126 // Hash set that hashes class descriptor, and compares descriptors and class loaders. Results 127 // should be compared for a matching class descriptor and class loader. 168 mirror::Class* UpdateClass(const char* descriptor, mirror::Class* new_klass, size_t hash) 195 // Return the first class that matches the descriptor. Returns null if there are none. 196 mirror::Class* Lookup(const char* descriptor, size_t hash) 200 // Return the first class that matches the descriptor of klass. Returns null if there are none. 206 // with the same descriptor i [all...] |
H A D | class_linker.cc | 133 static bool HasInitWithString(Thread* self, ClassLinker* class_linker, const char* descriptor) 139 ObjPtr<mirror::Class> exception_class = class_linker->FindClass(self, descriptor, class_loader); 176 const char* descriptor = obj->AsClass()->GetDescriptor(&temp); local 178 if (HasInitWithString(self, class_linker, descriptor)) { 179 self->ThrowNewException(descriptor, c->PrettyDescriptor().c_str()); 181 self->ThrowNewException(descriptor, nullptr); 373 void ClassLinker::CheckSystemClass(Thread* self, Handle<mirror::Class> c1, const char* descriptor) { argument 374 ObjPtr<mirror::Class> c2 = FindSystemClass(self, descriptor); 376 LOG(FATAL) << "Could not find class " << descriptor; 383 LOG(FATAL) << "InitWithoutImage: Class mismatch for " << descriptor 2298 EnsureResolved(Thread* self, const char* descriptor, ObjPtr<mirror::Class> klass) argument 2378 FindInClassPath(const char* descriptor, size_t hash, const std::vector<const DexFile*>& class_path) argument 2389 FindClassInBaseDexClassLoader(ScopedObjectAccessAlreadyRunnable& soa, Thread* self, const char* descriptor, size_t hash, Handle<mirror::ClassLoader> class_loader, ObjPtr<mirror::Class>* result) argument 2522 FindClass(Thread* self, const char* descriptor, Handle<mirror::ClassLoader> class_loader) argument 2693 DefineClass(Thread* self, const char* descriptor, size_t hash, Handle<mirror::ClassLoader> class_loader, const DexFile& dex_file, const DexFile::ClassDef& dex_class_def) argument 2875 const char* descriptor = dex_file.GetFieldTypeDescriptor(field_id); local 3104 const char* descriptor = dex_file.GetClassDescriptor(dex_class_def); local 3599 const char* descriptor = Primitive::Descriptor(type); local 3620 CreateArrayClass(Thread* self, const char* descriptor, size_t hash, Handle<mirror::ClassLoader> class_loader) argument 3798 InsertClass(const char* descriptor, ObjPtr<mirror::Class> klass, size_t hash) argument 3853 LookupClass(Thread* self, const char* descriptor, size_t hash, ObjPtr<mirror::ClassLoader> class_loader) argument 3892 LookupClassesVisitor(const char* descriptor, size_t hash, std::vector<ObjPtr<mirror::Class>>* result) argument 3915 LookupClasses(const char* descriptor, std::vector<ObjPtr<mirror::Class>>& result) argument 5231 LinkClass(Thread* self, const char* descriptor, Handle<mirror::Class> klass, Handle<mirror::ObjectArray<mirror::Class>> interfaces, MutableHandle<mirror::Class>* h_new_class_out) argument 7874 const char* descriptor = dex_file.StringByTypeIdx(type_idx); local 7923 const char* descriptor = dex_file.StringByTypeIdx(type_idx); local 8658 const char* descriptor = class_roots_descriptors[class_root]; local 8958 const char* descriptor = dex_file->GetTypeDescriptor(type_id); local [all...] |
H A D | class_linker_test.cc | 59 void AssertNonExistentClass(const std::string& descriptor) 62 EXPECT_TRUE(class_linker_->FindSystemClass(self, descriptor.c_str()) == nullptr); 71 void AssertPrimitiveClass(const std::string& descriptor) 74 AssertPrimitiveClass(descriptor, class_linker_->FindSystemClass(self, descriptor.c_str())); 77 void AssertPrimitiveClass(const std::string& descriptor, mirror::Class* primitive) 84 ASSERT_STREQ(descriptor.c_str(), primitive->GetDescriptor(&temp)); 263 void AssertClass(const std::string& descriptor, Handle<mirror::Class> klass) 266 EXPECT_STREQ(descriptor.c_str(), klass->GetDescriptor(&temp)); 267 if (descriptor 432 const char* descriptor = dex.GetClassDescriptor(class_def); local 438 const char* descriptor = dex.GetTypeDescriptor(type_id); local 861 std::string descriptor; local 1288 const char* descriptor = "LErroneous;"; local [all...] |
H A D | utils.h | 81 // Returns a human-readable equivalent of 'descriptor'. So "I" would be "int", 84 std::string PrettyDescriptor(const char* descriptor); 109 std::string DescriptorToDot(const char* descriptor); 113 std::string DescriptorToName(const char* descriptor);
|
H A D | runtime_callbacks.h | 106 void ClassPreDefine(const char* descriptor,
|
/art/test/ti-agent/ |
H A D | jni_binder.cc | 126 static std::string DescriptorToDot(const char* descriptor) { argument 127 size_t length = strlen(descriptor); 129 if (descriptor[0] == 'L' && descriptor[length - 1] == ';') { 131 std::string result(descriptor + 1, length - 2); 136 std::string result(descriptor); 142 return descriptor; 157 std::string descriptor = android::base::StringPrintf("L%s;", class_name); local 158 std::string dot_name = DescriptorToDot(descriptor.c_str());
|
/art/imgdiag/ |
H A D | imgdiag.cc | 212 std::string descriptor; member in struct:art::ImgDiagDumper::ClassData 501 // Look up remote classes by their descriptor 503 // Look up local classes by their descriptor 587 std::string descriptor = GetClassDescriptor(klass); local 601 } else if (strcmp(descriptor.c_str(), "Ljava/lang/reflect/ArtMethod;") == 0) { 624 if (strcmp(descriptor.c_str(), "Ljava/lang/Class;") == 0) { 625 local_class_map[descriptor] = reinterpret_cast<mirror::Class*>(obj); 626 remote_class_map[descriptor] = reinterpret_cast<mirror::Class*>(remote_obj); 629 // Unconditionally store the class descriptor in case we need it later 630 class_data[klass].descriptor 687 const std::string& descriptor = class_data[klass].descriptor; local 692 << "class descriptor: '" << descriptor << "'" local 795 const std::string& descriptor = class_data[klass].descriptor; local 800 << "class descriptor: '" << descriptor << "'" local 877 std::string descriptor; local [all...] |
/art/runtime/openjdkjvmti/ |
H A D | ti_class.cc | 79 const char* descriptor, 93 "Unable to allocate dex file for transformation of %s", descriptor).c_str()); 102 descriptor); 113 LOG(WARNING) << "Unable to load modified dex file for " << descriptor << ": " << error_msg; 116 descriptor, 126 descriptor); 133 void ClassPreDefine(const char* descriptor, 147 if (descriptor[0] != 'L') { 157 LOG(WARNING) << "Ignoring load of class <" << descriptor << "> as it is being loaded during " 162 // Strip the 'L' and ';' from the descriptor 707 const char* descriptor = klass->GetDescriptor(&storage); local [all...] |
H A D | ti_class_definition.cc | 75 std::string descriptor(m_klass->GetDescriptor(&descriptor_store)); 76 name_ = descriptor.substr(1, descriptor.size() - 2);
|
/art/compiler/driver/ |
H A D | compiler_driver.cc | 459 const char* descriptor = dex_file.GetClassDescriptor(class_def); local 461 mirror::Class* klass = class_linker->FindClass(self, descriptor, class_loader); 902 const char* descriptor = dex_file->GetClassDescriptor(class_def); local 903 cls.Assign(class_linker->FindClass(soa.Self(), descriptor, class_loader)); 971 bool CompilerDriver::IsImageClass(const char* descriptor) const { 974 return image_classes_->find(descriptor) != image_classes_->end(); 981 bool CompilerDriver::IsClassToCompile(const char* descriptor) const { 985 return classes_to_compile_->find(descriptor) != classes_to_compile_->end(); 1109 const std::string& descriptor(*it); 1112 hs.NewHandle(class_linker->FindSystemClass(self, descriptor 1154 const char* descriptor = dex_file->GetTypeDescriptor(type_id); local 1181 const char* descriptor = klass->GetDescriptor(&temp); local 1374 const char* descriptor = klass->GetDescriptor(&temp); local 1656 const char* descriptor = exception->GetClass()->GetDescriptor(&temp); local 1926 const char* descriptor = dex_file.GetClassDescriptor(class_def); local 2071 const char* descriptor = dex_file.GetClassDescriptor(class_def); variable 2192 const char* descriptor = dex_file.GetClassDescriptor(class_def); variable 2254 const char* descriptor = dex_file.StringDataByIdx(class_type_id.descriptor_idx_); variable 2320 *file_log << descriptor << "\\n"; variable 2565 const char* descriptor = dex_file.GetClassDescriptor(class_def); variable 2751 const char* descriptor = dex_file.GetClassDescriptor(dex_file.GetClassDef(class_def_idx)); local [all...] |
/art/compiler/optimizing/ |
H A D | instruction_builder.h | 262 const char* descriptor, 271 const char* descriptor, 280 const char* descriptor);
|