/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 | 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.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 119 Remove(const char* descriptor) argument [all...] |
H A D | reflection_test.cc | 77 jclass GetPrimitiveClass(char descriptor) { argument 79 mirror::Class* c = class_linker_->FindPrimitiveClass(descriptor);
|
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 | 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)); 251 void AssertClass(const std::string& descriptor, Handle<mirror::Class> klass) 254 EXPECT_STREQ(descriptor.c_str(), klass->GetDescriptor(&temp)); 255 if (descriptor 422 const char* descriptor = dex.GetClassDescriptor(class_def); local 428 const char* descriptor = dex.GetTypeDescriptor(type_id); local 767 std::string descriptor; local [all...] |
H A D | jni_internal_test.cc | 88 jclass GetPrimitiveClass(char descriptor) { argument 90 mirror::Class* c = class_linker_->FindPrimitiveClass(descriptor); 152 // You can't include the "L;" in a JNI class 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...] |
H A D | dex_file.cc | 514 const DexFile::ClassDef* DexFile::FindClassDef(const char* descriptor, size_t hash) const { argument 515 DCHECK_EQ(ComputeModifiedUtf8Hash(descriptor), hash); 517 const uint32_t class_def_idx = lookup_table_->Lookup(descriptor, hash); 526 const TypeId* type_id = FindTypeId(descriptor); 753 if (offset >= end) { // expect some descriptor following [ 761 if (offset >= end) { // unexpected early termination of descriptor 769 std::string descriptor(signature.data() + start_offset, offset - start_offset); 770 const DexFile::TypeId* type_id = FindTypeId(descriptor.c_str()); 862 const char* descriptor = GetMethodDeclaringClassDescriptor(GetMethodId(method_idx)); local 864 local_in_reg[arg_reg].descriptor_ = descriptor; 883 const char* descriptor = it.GetDescriptor(); local 2158 SearchAnnotationSet(const AnnotationSetItem* annotation_set, const char* descriptor, uint32_t visibility) const argument [all...] |
/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.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.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.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...] |
/art/compiler/driver/ |
H A D | compiler_driver_test.cc | 82 const char* descriptor = dex_file.GetClassDescriptor(class_def); local 87 mirror::Class* c = class_linker->FindClass(soa.Self(), descriptor, loader);
|
/art/profman/ |
H A D | profman.cc | 85 UsageError(" descriptor."); 91 UsageError(" --profile-file-fd=<number>: same as --profile-file but accepts a file descriptor."); 101 UsageError(" accepts a file descriptor. Cannot be used together with"); 107 UsageError(" --apk-fd=<number>: file descriptor containing an open APK to"); 223 PLOG(WARNING) << "Failed to close descriptor"; 327 static void CloseAllFds(const std::vector<int>& fds, const char* descriptor) { argument 330 PLOG(WARNING) << "Failed to close descriptor for " << descriptor << " at index " << i;
|
/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/compiler/ |
H A D | image_test.cc | 425 const char* descriptor = dex->GetClassDescriptor(class_def); local 426 mirror::Class* klass = class_linker_->FindSystemClass(soa.Self(), descriptor); 427 EXPECT_TRUE(klass != nullptr) << descriptor; 428 if (image_classes.find(descriptor) == image_classes.end()) { 430 reinterpret_cast<uint8_t*>(klass) < image_begin) << descriptor; 433 EXPECT_LT(image_begin, reinterpret_cast<uint8_t*>(klass)) << descriptor; 434 EXPECT_LT(reinterpret_cast<uint8_t*>(klass), image_end) << descriptor;
|
H A D | oat_test.cc | 412 const char* descriptor = dex_file.GetClassDescriptor(class_def); local 414 descriptor, 418 CHECK_EQ(mirror::Class::Status::kStatusNotReady, oat_class.GetStatus()) << descriptor; 420 oat_class.GetType()) << descriptor;
|
/art/compiler/utils/ |
H A D | test_dex_file_builder.h | 44 void AddType(const std::string& descriptor) { argument 46 AddString(descriptor); 47 types_.emplace(descriptor, 0u);
|
/art/runtime/jdwp/ |
H A D | jdwp_handler.cc | 362 std::string descriptor; local 364 JDWP::JdwpError status = Dbg::GetClassInfo(classes[i], &type_tag, &class_status, &descriptor); 372 expandBufAddUtf8String(pReply, descriptor);
|
/art/runtime/native/ |
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/dexdump/ |
H A D | dexdump.cc | 114 * Converts a type descriptor to human-readable "dotted" form. For 117 * form can't be converted back to a descriptor. 165 * Converts the class name portion of a type descriptor to human-readable 464 const char* descriptor = local 466 fprintf(gOutFile, " %s -> 0x%04x\n", descriptor, it.GetHandlerAddress()); 955 fprintf(stderr, "bad method type descriptor '%s'\n", typeDescriptor); 975 fprintf(stderr, "ERROR: bad descriptor '%s'\n", typeDescriptor); 1306 fprintf(gOutFile, " Class descriptor : '%s'\n", classDescriptor);
|
/art/runtime/mirror/ |
H A D | class.cc | 156 const char* descriptor = h_this->GetDescriptor(&temp); local 158 if ((descriptor[0] != 'L') && (descriptor[0] != '[')) { 159 // The descriptor indicates that this is the class for 162 switch (descriptor[0]) { 173 LOG(FATAL) << "Unknown primitive type: " << PrintableChar(descriptor[0]); 179 name = String::AllocFromModifiedUtf8(self, DescriptorToDot(descriptor).c_str()); 320 // Compare the package part of the descriptor string. 641 // Fields are sorted by class, then name, then type descriptor. This is verified in dex file
|
/art/compiler/optimizing/ |
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/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...] |