/art/runtime/verifier/ |
H A D | method_verifier_test.cc | 32 void VerifyClass(const std::string& descriptor) 34 ASSERT_TRUE(descriptor != nullptr); 36 mirror::Class* klass = class_linker_->FindSystemClass(self, descriptor.c_str()); 54 const char* descriptor = dex.GetClassDescriptor(class_def); local 55 VerifyClass(descriptor);
|
H A D | reg_type.h | 281 const StringPiece& descriptor, 283 : descriptor_(descriptor), 318 const StringPiece& descriptor, 326 ConflictType(mirror::Class* klass, const StringPiece& descriptor, 328 : RegType(klass, descriptor, cache_id) {} 347 const StringPiece& descriptor, 355 UndefinedType(mirror::Class* klass, const StringPiece& descriptor, 357 : RegType(klass, descriptor, cache_id) {} 364 PrimitiveType(mirror::Class* klass, const StringPiece& descriptor, 372 Cat1Type(mirror::Class* klass, const StringPiece& descriptor, 684 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 173 From(mirror::ClassLoader* loader, const char* descriptor, bool precise) argument 245 InsertClass(const StringPiece& descriptor, mirror::Class* klass, bool precise) argument 257 FromClass(const char* descriptor, mirror::Class* klass, bool precise) argument 312 CreatePrimitiveTypeInstance(const std::string& descriptor) argument 620 const char* descriptor = klass->GetDescriptor(&temp); local [all...] |
H A D | reg_type.cc | 50 PrimitiveType::PrimitiveType(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 51 : RegType(klass, descriptor, cache_id) { 53 CHECK(!descriptor.empty()); 56 Cat1Type::Cat1Type(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 57 : PrimitiveType(klass, descriptor, cache_id) { 60 Cat2Type::Cat2Type(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 61 : PrimitiveType(klass, descriptor, cache_id) { 126 const StringPiece& descriptor, 129 instance_ = new DoubleHiType(klass, descriptor, cache_id); 141 const StringPiece& descriptor, 125 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 140 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 155 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 162 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 183 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 197 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 211 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 225 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 239 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 253 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 268 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 286 CreateInstance(mirror::Class* klass, const StringPiece& descriptor, uint16_t cache_id) argument 301 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) 158 mirror::Class* ResolveClass(const char* descriptor, mirror::ClassLoader* loader) 160 bool MatchDescriptor(size_t idx, const StringPiece& descriptor, bool precise) 174 static const Type* CreatePrimitiveTypeInstance(const std::string& descriptor)
|
H A D | method_verifier.cc | 1256 const char* descriptor = dex_file_->StringByTypeIdx(idx); local 1257 if (descriptor[0] != 'L') { 1258 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "can't call new-instance on type '" << descriptor << "'"; 1289 const char* descriptor = dex_file_->StringByTypeIdx(idx); local 1290 const char* cp = descriptor; 1297 << "can't new-array class '" << descriptor << "' (not an array)"; 1302 << "can't new-array class '" << descriptor << "' (exceeds limit)"; 1631 static bool IsPrimitiveDescriptor(char descriptor) { argument 1632 switch (descriptor) { 1691 const char* descriptor local 1697 << " args, found more (" << descriptor << ")"; local 1738 << " args, found more (" << descriptor << ")"; local 1767 const char* descriptor = dex_file_->GetReturnTypeDescriptor(proto_id); local 2858 const char* descriptor = dex_file_->StringByTypeIdx(return_type_idx); local 2952 const char* descriptor; local 3006 const char* descriptor; local 3318 const char* descriptor = called_method->GetReturnTypeDescriptor(); local 3642 UninstantiableError(const char* descriptor) argument 3657 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); local 3663 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); local 3667 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); local 3672 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); local 4248 const char* descriptor = local 4671 const char* descriptor = dex_file_->GetFieldTypeDescriptor(field_id); local 4982 const char* descriptor = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(return_type_idx)); local 4992 const char* descriptor local 5096 FromClass(const char* descriptor, mirror::Class* klass, bool precise) argument [all...] |
/art/runtime/ |
H A D | class_table.cc | 56 mirror::Class* ClassTable::UpdateClass(const char* descriptor, mirror::Class* klass, size_t hash) { argument 59 auto existing_it = classes_.back().FindWithHash(descriptor, hash); 62 if (class_set.FindWithHash(descriptor, hash) != class_set.end()) { 63 LOG(FATAL) << "Updating class found in frozen table " << descriptor; 66 LOG(FATAL) << "Updating class not found " << descriptor; 69 CHECK_NE(existing, klass) << descriptor; 70 CHECK(!existing->IsResolved()) << descriptor; 71 CHECK_EQ(klass->GetStatus(), mirror::Class::kStatusResolving) << descriptor; 72 CHECK(!klass->IsTemp()) << descriptor; 74 // Update the element in the hash set with the new class. This is safe to do since the descriptor 94 Lookup(const char* descriptor, size_t hash) argument 115 Remove(const char* descriptor) argument [all...] |
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 | art_field.cc | 50 mirror::Class* ArtField::ProxyFindSystemClass(const char* descriptor) { argument 52 return Runtime::Current()->GetClassLinker()->FindSystemClass(Thread::Current(), descriptor);
|
H A D | class_table.h | 46 // Same class loader and descriptor. 49 // Same descriptor. 50 bool operator()(const GcRoot<mirror::Class>& a, const char* descriptor) const 53 uint32_t operator()(const char* descriptor) const NO_THREAD_SAFETY_ANALYSIS; 64 // hash set which hashes class descriptor, and compares descriptors and class loaders. Results 65 // should be compared for a matching Class descriptor and class loader. 90 mirror::Class* UpdateClass(const char* descriptor, mirror::Class* new_klass, size_t hash) 113 // Return the first class that matches the descriptor. Returns null if there are none. 114 mirror::Class* Lookup(const char* descriptor, size_t hash) 118 // Return the first class that matches the descriptor o [all...] |
H A D | class_linker-inl.h | 32 inline mirror::Class* ClassLinker::FindSystemClass(Thread* self, const char* descriptor) { argument 33 return FindClass(self, descriptor, ScopedNullHandle<mirror::ClassLoader>()); 44 std::string descriptor = "["; local 46 descriptor += (*element_class)->GetDescriptor(&temp); 50 mirror::Class* array_class = FindClass(self, descriptor.c_str(), class_loader);
|
H A D | utils.cc | 225 std::string PrettyDescriptor(const char* descriptor) { argument 227 const char* c = descriptor; 252 default: return descriptor; 569 std::string descriptor(class_name); 570 std::replace(descriptor.begin(), descriptor.end(), '.', '/'); 571 if (descriptor.length() > 0 && descriptor[0] != '[') { 572 descriptor = "L" + descriptor 577 DescriptorToDot(const char* descriptor) argument 596 DescriptorToName(const char* descriptor) argument [all...] |
H A D | class_linker.cc | 113 static bool HasInitWithString(Thread* self, ClassLinker* class_linker, const char* descriptor) 119 mirror::Class* exception_class = class_linker->FindClass(self, descriptor, class_loader); 144 const char* descriptor = obj->AsClass()->GetDescriptor(&temp); local 146 if (HasInitWithString(self, class_linker, descriptor)) { 147 self->ThrowNewException(descriptor, PrettyDescriptor(c).c_str()); 149 self->ThrowNewException(descriptor, nullptr); 333 void ClassLinker::CheckSystemClass(Thread* self, Handle<mirror::Class> c1, const char* descriptor) { argument 334 mirror::Class* c2 = FindSystemClass(self, descriptor); 336 LOG(FATAL) << "Could not find class " << descriptor; 343 LOG(FATAL) << "InitWithoutImage: Class mismatch for " << descriptor 2150 EnsureResolved(Thread* self, const char* descriptor, mirror::Class* klass) argument 2209 FindInClassPath(const char* descriptor, size_t hash, const std::vector<const DexFile*>& class_path) argument 2220 FindClassInPathClassLoader(ScopedObjectAccessAlreadyRunnable& soa, Thread* self, const char* descriptor, size_t hash, Handle<mirror::ClassLoader> class_loader, mirror::Class** result) argument 2341 FindClass(Thread* self, const char* descriptor, Handle<mirror::ClassLoader> class_loader) argument 2435 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 2591 const char* descriptor = dex_file.GetFieldTypeDescriptor(field_id); local 2910 const char* descriptor = dex_file.GetClassDescriptor(dex_class_def); local 3346 const char* descriptor = Primitive::Descriptor(type); local 3366 CreateArrayClass(Thread* self, const char* descriptor, size_t hash, Handle<mirror::ClassLoader> class_loader) argument 3540 InsertClass(const char* descriptor, mirror::Class* klass, size_t hash) argument 3590 RemoveClass(const char* descriptor, mirror::ClassLoader* class_loader) argument 3596 LookupClass(Thread* self, const char* descriptor, size_t hash, mirror::ClassLoader* class_loader) argument 3668 const char* descriptor = klass->GetDescriptor(&temp); local 3707 LookupClassFromBootImage(const char* descriptor) argument 3732 LookupClassesVisitor(const char* descriptor, size_t hash, std::vector<mirror::Class*>* result) argument 3752 LookupClasses(const char* descriptor, std::vector<mirror::Class*>& result) argument 5056 LinkClass(Thread* self, const char* descriptor, Handle<mirror::Class> klass, Handle<mirror::ObjectArray<mirror::Class>> interfaces, MutableHandle<mirror::Class>* h_new_class_out) argument 7342 const char* descriptor = dex_file.StringByTypeIdx(type_idx); local 7862 const char* descriptor = class_roots_descriptors[class_root]; local 8141 const char* descriptor = dex_file->GetTypeDescriptor(type_id); local [all...] |
H A D | class_linker.h | 159 // Finds a class by its descriptor, loading it if necessary. 162 const char* descriptor, 168 // function is supposed to be ComputeModifiedUtf8Hash(descriptor). Returns true if the 174 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) 199 const char* descriptor, 207 // Finds a class by its descriptor, returning null if it isn't wasn't loaded 210 const char* descriptor, 216 // Finds all the classes with the given descriptor, regardles [all...] |
H A D | class_linker_test.cc | 49 void AssertNonExistentClass(const std::string& descriptor) 52 EXPECT_TRUE(class_linker_->FindSystemClass(self, descriptor.c_str()) == nullptr); 61 void AssertPrimitiveClass(const std::string& descriptor) 64 AssertPrimitiveClass(descriptor, class_linker_->FindSystemClass(self, descriptor.c_str())); 67 void AssertPrimitiveClass(const std::string& descriptor, mirror::Class* primitive) 74 ASSERT_STREQ(descriptor.c_str(), primitive->GetDescriptor(&temp)); 187 void AssertClass(const std::string& descriptor, Handle<mirror::Class> klass) 190 EXPECT_STREQ(descriptor.c_str(), klass->GetDescriptor(&temp)); 191 if (descriptor 358 const char* descriptor = dex.GetClassDescriptor(class_def); local 364 const char* descriptor = dex.GetTypeDescriptor(type_id); local 703 std::string descriptor; local [all...] |
H A D | utils.h | 133 // Returns a human-readable equivalent of 'descriptor'. So "I" would be "int", 136 std::string PrettyDescriptor(mirror::String* descriptor) 138 std::string PrettyDescriptor(const char* descriptor); 191 std::string DescriptorToDot(const char* descriptor); 195 std::string DescriptorToName(const char* descriptor);
|
H A D | dex_file_verifier.cc | 141 bool DexFileVerifier::CheckShortyDescriptorMatch(char shorty_char, const char* descriptor, argument 158 if (UNLIKELY((descriptor[0] != shorty_char) || (descriptor[1] != '\0'))) { 160 shorty_char, descriptor); 165 if (UNLIKELY((descriptor[0] != 'L') && (descriptor[0] != '['))) { 166 ErrorStringPrintf("Shorty vs. type mismatch: '%c', '%s'", shorty_char, descriptor); 1729 LOAD_STRING(descriptor, item->descriptor_idx_, "inter_type_id_item descriptor_idx") 1731 // Check that the descriptor is a valid type. 1732 if (UNLIKELY(!IsValidDescriptor(descriptor))) { 1774 const char* descriptor = it.GetDescriptor(); local [all...] |
/art/runtime/native/ |
H A D | java_lang_VMClassLoader.cc | 38 std::string descriptor(DotToDescriptor(name.c_str())); 39 const size_t descriptor_hash = ComputeModifiedUtf8Hash(descriptor.c_str()); 40 mirror::Class* c = cl->LookupClass(soa.Self(), descriptor.c_str(), descriptor_hash, loader); 64 cl->FindClassInPathClassLoader(soa, soa.Self(), descriptor.c_str(), descriptor_hash,
|
H A D | dalvik_system_DexFile.cc | 271 const std::string descriptor(DotToDescriptor(class_name.c_str())); 272 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); 274 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor.c_str(), hash); 283 descriptor.c_str(), 325 const char* descriptor = dex_file->GetClassDescriptor(class_def); local 326 descriptors.insert(descriptor); 339 std::string descriptor(DescriptorToDot(*it)); 340 ScopedLocalRef<jstring> jdescriptor(env, env->NewStringUTF(descriptor.c_str()));
|
/art/runtime/lambda/ |
H A D | closure_test.cc | 226 void TestPrimitive(const char *descriptor, Args ... args) { argument 227 const char* shorty = descriptor; 229 SCOPED_TRACE(descriptor); 232 << "test error: descriptor must have same # of types as the # of captured variables"; 236 descriptor, // NOLINT [whitespace/blank_line] [2] 254 TestPrimitiveWithClosure(closure_raw.get(), descriptor, shorty, args ...); 267 TestPrimitiveWithClosure(closure_built.get(), descriptor, shorty, args ...); 280 const char* descriptor, 285 EXPECT_STREQ(descriptor, closure->GetCapturedVariablesTypeDescriptor()); 279 TestPrimitiveWithClosure(Closure* closure, const char* descriptor, const char* shorty, Args ... args) argument
|
/art/imgdiag/ |
H A D | imgdiag.cc | 208 std::string descriptor; member in struct:art::ImgDiagDumper::ClassData 497 // Look up remote classes by their descriptor 499 // Look up local classes by their descriptor 583 std::string descriptor = GetClassDescriptor(klass); local 597 } else if (strcmp(descriptor.c_str(), "Ljava/lang/reflect/ArtMethod;") == 0) { 620 if (strcmp(descriptor.c_str(), "Ljava/lang/Class;") == 0) { 621 local_class_map[descriptor] = reinterpret_cast<mirror::Class*>(obj); 622 remote_class_map[descriptor] = reinterpret_cast<mirror::Class*>(remote_obj); 625 // Unconditionally store the class descriptor in case we need it later 626 class_data[klass].descriptor 683 const std::string& descriptor = class_data[klass].descriptor; local 688 << "class descriptor: '" << descriptor << "'" local 791 const std::string& descriptor = class_data[klass].descriptor; local 796 << "class descriptor: '" << descriptor << "'" local 873 std::string descriptor; local [all...] |
/art/compiler/ |
H A D | image_test.cc | 270 const char* descriptor = dex->GetClassDescriptor(class_def); local 271 mirror::Class* klass = class_linker_->FindSystemClass(soa.Self(), descriptor); 272 EXPECT_TRUE(klass != nullptr) << descriptor; 273 if (image_classes.find(descriptor) != image_classes.end()) { 275 EXPECT_LT(image_begin, reinterpret_cast<uint8_t*>(klass)) << descriptor; 276 EXPECT_LT(reinterpret_cast<uint8_t*>(klass), image_end) << descriptor; local 279 reinterpret_cast<uint8_t*>(klass) < image_begin) << descriptor;
|
/art/compiler/optimizing/ |
H A D | instruction_builder.h | 230 const char* descriptor, 239 const char* descriptor, 247 const char* descriptor);
|
H A D | instruction_builder.cc | 775 const char* descriptor = dex_file_->GetMethodShorty(method_idx); local 776 Primitive::Type return_type = Primitive::GetType(descriptor[0]); 779 size_t number_of_arguments = strlen(descriptor) - 1; 816 descriptor); 834 descriptor, 899 descriptor, 1037 const char* descriptor, 1048 Primitive::Type type = Primitive::GetType(descriptor[descriptor_index++]); 1092 const char* descriptor, 1111 descriptor, 1032 SetupInvokeArguments(HInvoke* invoke, uint32_t number_of_vreg_arguments, uint32_t* args, uint32_t register_index, bool is_range, const char* descriptor, size_t start_index, size_t* argument_index) argument 1087 HandleInvoke(HInvoke* invoke, uint32_t number_of_vreg_arguments, uint32_t* args, uint32_t register_index, bool is_range, const char* descriptor, HClinitCheck* clinit_check) argument 1132 HandleStringInit(HInvoke* invoke, uint32_t number_of_vreg_arguments, uint32_t* args, uint32_t register_index, bool is_range, const char* descriptor) argument 1501 const char* descriptor = dex_file_->StringByTypeIdx(type_index); local [all...] |
/art/compiler/driver/ |
H A D | compiler_driver.cc | 505 const char* descriptor = dex_file.GetClassDescriptor(class_def); local 507 mirror::Class* klass = class_linker->FindClass(self, descriptor, class_loader); 938 bool CompilerDriver::IsImageClass(const char* descriptor) const { 941 return image_classes_->find(descriptor) != image_classes_->end(); 948 bool CompilerDriver::IsClassToCompile(const char* descriptor) const { 956 return classes_to_compile_->find(descriptor) != classes_to_compile_->end(); 1088 const std::string& descriptor(*it); 1091 hs.NewHandle(class_linker->FindSystemClass(self, descriptor.c_str()))); 1093 VLOG(compiler) << "Failed to find class " << descriptor; 1125 const char* descriptor local 1153 const char* descriptor = klass->GetDescriptor(&temp); local 1339 const char* descriptor = klass->GetDescriptor(&temp); local 1986 const char* descriptor = exception->GetClass()->GetDescriptor(&temp); local 2249 const char* descriptor = dex_file.GetClassDescriptor(class_def); variable 2337 const char* descriptor = dex_file.GetClassDescriptor(class_def); variable 2399 const char* descriptor = dex_file.StringDataByIdx(class_type_id.descriptor_idx_); variable 2463 *file_log << descriptor << "\\n"; variable 2618 const char* descriptor = dex_file.GetClassDescriptor(class_def); variable 2807 const char* descriptor = dex_file.GetClassDescriptor(dex_file.GetClassDef(class_def_idx)); local [all...] |