Home
last modified time | relevance | path

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

12345

/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()
/art/runtime/jit/
Ddebugger_interface.cc255 static uint64_t GetNextTimestamp(JITDescriptor& descriptor) { in GetNextTimestamp() argument
256 return std::max(descriptor.timestamp_ + 1, NanoTime()); in GetNextTimestamp()
260 static void Seqlock(JITDescriptor& descriptor) { in Seqlock() argument
261 DCHECK_EQ(descriptor.seqlock_.load(kNonRacingRelaxed) & 1, 0u) << "Already locked"; in Seqlock()
262 descriptor.seqlock_.fetch_add(1, std::memory_order_relaxed); in Seqlock()
268 static void Sequnlock(JITDescriptor& descriptor) { in Sequnlock() argument
269 DCHECK_EQ(descriptor.seqlock_.load(kNonRacingRelaxed) & 1, 1u) << "Already unlocked"; in Sequnlock()
272 descriptor.seqlock_.fetch_add(1, std::memory_order_relaxed); in Sequnlock()
280 JITDescriptor& descriptor = NativeInfo::Descriptor(); in InsertNewEntry() local
281 const JITCodeEntry* prev = (next != nullptr ? next->prev_ : descriptor.tail_); in InsertNewEntry()
[all …]
/art/runtime/
Dclass_root.cc25 #define CLASS_ROOT_DESCRIPTOR(name, descriptor, mirror_type) descriptor, in GetClassRootDescriptor() argument
33 const char* descriptor = class_roots_descriptors[static_cast<size_t>(class_root)]; in GetClassRootDescriptor() local
34 CHECK(descriptor != nullptr); in GetClassRootDescriptor()
35 return descriptor; in GetClassRootDescriptor()
Dclass_table.cc36 ObjPtr<mirror::Class> ClassTable::UpdateClass(const char* descriptor, in UpdateClass() argument
41 DescriptorHashPair pair(descriptor, hash); in UpdateClass()
46 LOG(FATAL) << "Updating class found in frozen table " << descriptor; in UpdateClass()
49 LOG(FATAL) << "Updating class not found " << descriptor; in UpdateClass()
52 CHECK_NE(existing, klass) << descriptor; in UpdateClass()
53 CHECK(!existing->IsResolved()) << descriptor; in UpdateClass()
54 CHECK_EQ(klass->GetStatus(), ClassStatus::kResolving) << descriptor; in UpdateClass()
55 CHECK(!klass->IsTemp()) << descriptor; in UpdateClass()
102 ObjPtr<mirror::Class> ClassTable::Lookup(const char* descriptor, size_t hash) { in Lookup() argument
103 DescriptorHashPair pair(descriptor, hash); in Lookup()
[all …]
Dart_field.cc42 ObjPtr<mirror::Class> ArtField::ProxyFindSystemClass(const char* descriptor) { in ProxyFindSystemClass() argument
45 Thread::Current(), descriptor, /* class_loader= */ nullptr); in ProxyFindSystemClass()
Dsdk_checker.cc133 bool SdkChecker::ShouldDenyAccess(const char* descriptor) const { in ShouldDenyAccess()
140 const dex::TypeId* type_id = dex_file->FindTypeId(descriptor); in ShouldDenyAccess()
151 VLOG(verifier) << "Deny for " << descriptor; in ShouldDenyAccess()
/art/runtime/verifier/
Dreg_type.h322 const std::string_view& descriptor, in RegType() argument
324 : descriptor_(descriptor), in RegType()
370 const std::string_view& descriptor,
383 const std::string_view& descriptor, in ConflictType() argument
385 : RegType(klass, descriptor, cache_id) { in ConflictType()
406 const std::string_view& descriptor,
419 const std::string_view& descriptor, in UndefinedType() argument
421 : RegType(klass, descriptor, cache_id) { in UndefinedType()
431 const std::string_view& descriptor,
440 const std::string_view& descriptor,
[all …]
Dreg_type_cache.cc87 const char* descriptor, in FromDescriptor() argument
90 if (descriptor[1] == '\0') { in FromDescriptor()
91 switch (descriptor[0]) { in FromDescriptor()
112 } else if (descriptor[0] == 'L' || descriptor[0] == '[') { in FromDescriptor()
113 return From(loader, descriptor, precise); in FromDescriptor()
144 bool RegTypeCache::MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise) { in MatchDescriptor() argument
146 if (descriptor != entry->descriptor_) { in MatchDescriptor()
158 ObjPtr<mirror::Class> RegTypeCache::ResolveClass(const char* descriptor, in ResolveClass() argument
167 klass = class_linker_->FindClass(self, descriptor, class_loader); in ResolveClass()
169 klass = class_linker_->LookupClass(self, descriptor, loader); in ResolveClass()
[all …]
Dmethod_verifier_test.cc40 void VerifyClass(const std::string& descriptor) in VerifyClass() argument
42 ASSERT_FALSE(descriptor.empty()); in VerifyClass()
44 ObjPtr<mirror::Class> klass = class_linker_->FindSystemClass(self, descriptor.c_str()); in VerifyClass()
57 if (android::base::StartsWith(descriptor, "Ljava/lang/invoke")) { in VerifyClass()
71 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile() local
72 VerifyClass(descriptor); in VerifyDexFile()
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.h83 const RegType& From(ObjPtr<mirror::ClassLoader> loader, const char* descriptor, bool precise)
89 const RegType* InsertClass(const std::string_view& descriptor,
94 const RegType& FromClass(const char* descriptor, ObjPtr<mirror::Class> klass, bool precise)
103 const char* descriptor,
175 ObjPtr<mirror::Class> ResolveClass(const char* descriptor, ObjPtr<mirror::ClassLoader> loader)
177 bool MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise)
/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/dex2oat/linker/
Dimage_write_read_test.cc123 const char* descriptor = dex->GetClassDescriptor(class_def); in TestWriteRead() local
124 ObjPtr<mirror::Class> klass = class_linker_->FindSystemClass(soa.Self(), descriptor); in TestWriteRead()
125 EXPECT_TRUE(klass != nullptr) << descriptor; in TestWriteRead()
127 if (image_classes.find(std::string_view(descriptor)) == image_classes.end()) { in TestWriteRead()
128 EXPECT_TRUE(raw_klass >= image_end || raw_klass < image_begin) << descriptor; in TestWriteRead()
131 EXPECT_LT(image_begin, raw_klass) << descriptor; in TestWriteRead()
132 EXPECT_LT(raw_klass, image_end) << descriptor; in TestWriteRead()
/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-stdout.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.cc147 bool CompilerOptions::IsImageClass(const char* descriptor) const { in IsImageClass()
151 return image_classes_.find(std::string_view(descriptor)) != image_classes_.end(); in IsImageClass()
179 const char* descriptor = dex_file.GetClassDescriptor(dex_file.GetClassDef(class_def_idx)); in IsMethodVerifiedWithoutFailures() local
183 bool is_system_class = class_linker->FindSystemClass(self, descriptor) != nullptr; in IsMethodVerifiedWithoutFailures()
/art/tools/
Dpylibdexfile.py65 def descriptor(self): member in DexClass
102 def descriptor(self): member in Method
108 lambda a: DexClass(a.strip()).descriptor, arg_str.split(","))
113 cls=class_only.descriptor,
116 ret=ret.descriptor)
/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_method.cc594 std::string descriptor; in Run() local
596 jvmtiError err = GetSlotType(method, pc, &descriptor, &slot_type); in Run()
602 err = GetTypeError(method, slot_type, descriptor); in Run()
623 const std::string& descriptor)
628 /*out*/std::string* descriptor,
634 /*out*/ std::string* descriptor, in InferSlotTypeFromVerifier() argument
661 *descriptor = (rt.HasClass() ? rt.GetDescriptor() : "Ljava/lang/Object;"); in InferSlotTypeFromVerifier()
665 *descriptor = "I"; in InferSlotTypeFromVerifier()
669 *descriptor = "I"; in InferSlotTypeFromVerifier()
673 *descriptor = "J"; in InferSlotTypeFromVerifier()
[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()
258 LOG(INFO) << descriptor << ": " << res << " " << error_msg; in ExecuteWithRuntime()

12345