Home
last modified time | relevance | path

Searched refs:method_idx (Results 1 – 25 of 62) sorted by relevance

123

/art/libdexfile/dex/
Ddex_instruction_test.cc32 static void Build45cc(uint8_t num_args, uint16_t method_idx, uint16_t proto_idx, in Build45cc() argument
47 out[1] = method_idx; in Build45cc()
52 static void Build4rcc(uint16_t num_args, uint16_t method_idx, uint16_t proto_idx, in Build4rcc() argument
67 out[1] = method_idx; in Build4rcc()
143 uint16_t method_idx, in Build35c() argument
148 out[1] = method_idx; in Build35c()
160 uint16_t method_idx, in DumpInst35c() argument
163 Build35c(inst, code, method_idx, args); in DumpInst35c()
Ddex_instruction.cc379 uint32_t method_idx = VRegB_35c(); in DumpString() local
381 os << "}, " << file->PrettyMethod(method_idx) << " // method@" << method_idx; in DumpString()
412 uint32_t method_idx = VRegB_3rc(); in DumpString() local
414 << file->PrettyMethod(method_idx) << " // method@" << method_idx; in DumpString()
436 uint16_t method_idx = VRegB_45cc(); in DumpString() local
447 os << ", " << file->PrettyMethod(method_idx) in DumpString()
453 os << "method@" << method_idx << ", proto@" << proto_idx; in DumpString()
460 uint16_t method_idx = VRegB_4rcc(); in DumpString() local
463 << "}, " << file->PrettyMethod(method_idx) in DumpString()
465 << " // method@" << method_idx << ", proto@" << proto_idx; in DumpString()
[all …]
Ddex_file-inl.h172 inline const char* DexFile::GetMethodDeclaringClassDescriptor(uint32_t method_idx) const { in GetMethodDeclaringClassDescriptor() argument
173 return GetMethodDeclaringClassDescriptor(GetMethodId(method_idx)); in GetMethodDeclaringClassDescriptor()
181 inline std::string_view DexFile::GetMethodDeclaringClassDescriptorView(uint32_t method_idx) const { in GetMethodDeclaringClassDescriptorView() argument
182 return GetMethodDeclaringClassDescriptorView(GetMethodId(method_idx)); in GetMethodDeclaringClassDescriptorView()
202 inline const char* DexFile::GetMethodName(uint32_t method_idx) const { in GetMethodName() argument
203 return GetStringData(GetMethodId(method_idx).name_idx_); in GetMethodName()
216 inline std::string_view DexFile::GetMethodNameView(uint32_t method_idx) const { in GetMethodNameView() argument
217 return GetMethodNameView(GetMethodId(method_idx)); in GetMethodNameView()
453 uint32_t method_idx, in DecodeDebugLocalInfo() argument
460 DexFileParameterIterator it(*this, GetMethodPrototype(GetMethodId(method_idx))); in DecodeDebugLocalInfo()
[all …]
Ddex_file_verifier_test.cc236 /*out*/ uint32_t* method_idx = nullptr) { in FindMethodData() argument
245 if (method_idx != nullptr) { in FindMethodData()
246 *method_idx = method_index; in FindMethodData()
1402 uint32_t method_idx; in TEST_F() local
1403 const uint8_t* data = FindMethodData(dex_file, "foo", &method_idx); in TEST_F()
1406 CHECK_LT(method_idx + 1u, dex_file->NumMethodIds()); in TEST_F()
1407 CHECK_EQ(dex_file->GetMethodId(method_idx).name_idx_, in TEST_F()
1408 dex_file->GetMethodId(method_idx + 1).name_idx_); in TEST_F()
1409 CHECK_EQ(dex_file->GetMethodId(method_idx).proto_idx_.index_ + 1u, in TEST_F()
1410 dex_file->GetMethodId(method_idx + 1).proto_idx_.index_); in TEST_F()
[all …]
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2_test.cc164 uint32_t method_idx = 2u; in Create2MethodsWithGap() local
175 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code)); in Create2MethodsWithGap()
176 method_idx += 1u; in Create2MethodsWithGap()
183 AddCompiledMethod(MethodRef(method_idx), last_method_code, last_method_patches); in Create2MethodsWithGap()
188 auto last_result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in Create2MethodsWithGap()
199 return method_idx; in Create2MethodsWithGap()
202 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
203 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
734 uint32_t method_idx = 0u; in TestBakerFieldWide() local
746 ++method_idx; in TestBakerFieldWide()
[all …]
/art/compiler/
Dcompiler.cc38 uint32_t method_idx, in IsPathologicalCase() argument
49 << " in " << dex_file.PrettyMethod(method_idx); in IsPathologicalCase()
54 << accessor.RegistersSize() << " in " << dex_file.PrettyMethod(method_idx); in IsPathologicalCase()
Dcompiler.h54 virtual bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const = 0;
60 uint32_t method_idx,
66 uint32_t method_idx,
92 uint32_t method_idx,
/art/libprofile/profile/
Dprofile_compilation_info_test.cc70 uint16_t method_idx, in GetMethod() argument
72 return info.GetMethodHotness(MethodReference(dex, method_idx), annotation); in GetMethod()
190 for (uint32_t method_idx = 0; method_idx < kMaxMethodIds; method_idx++) { in SizeStressTest() local
196 method_idx, in SizeStressTest()
205 method_idx, in SizeStressTest()
525 for (uint16_t method_idx = 0; method_idx < 10; method_idx++) { in TEST_F() local
528 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
530 ASSERT_TRUE(AddMethod(&saved_info, dex4, method_idx, inline_caches)); in TEST_F()
557 for (uint16_t method_idx = 0; method_idx < 10; method_idx++) { in TEST_F() local
558 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
[all …]
Dprofile_test_helper.h40 uint16_t method_idx,
42 return AddMethod(info, dex, method_idx, Hotness::kFlagHot, annotation);
48 uint16_t method_idx,
51 return info->AddMethod(ProfileMethodInfo(MethodReference(dex, method_idx)),
60 uint16_t method_idx,
63 return AddMethod(info, dex, method_idx, inline_caches, Hotness::kFlagHot, annotation);
69 uint16_t method_idx,
73 return info->AddMethod(ProfileMethodInfo(MethodReference(dex, method_idx), inline_caches),
/art/runtime/entrypoints/jni/
Djni_entrypoints.cc44 uint32_t method_idx = (instruction.Opcode() == Instruction::INVOKE_STATIC) in GetInvokeStaticMethodIndex() local
47 return method_idx; in GetInvokeStaticMethodIndex()
62 uint32_t method_idx = GetInvokeStaticMethodIndex(method, dex_pc); in artFindNativeMethodRunnable() local
64 self, method_idx, method, kStatic); in artFindNativeMethodRunnable()
74 MethodReference(method->GetDexFile(), method_idx), in artFindNativeMethodRunnable()
177 uint32_t method_idx = GetInvokeStaticMethodIndex(caller, dex_pc); in artCriticalNativeFrameSize() local
178 std::string_view shorty = dex_file->GetMethodShortyView(method_idx); in artCriticalNativeFrameSize()
/art/tools/dexanalyze/
Ddexanalyze_experiments.cc380 uint32_t method_idx = DexMethodIndex(inst.Inst()); in ProcessDexFile() local
381 ++types_accessed[dex_file.GetMethodId(method_idx).class_idx_.index_]; in ProcessDexFile()
382 if (dex_file.GetMethodId(method_idx).class_idx_ == accessor.GetClassIdx()) { in ProcessDexFile()
386 unique_method_ids.insert(method_idx); in ProcessDexFile()
391 uint32_t method_idx = DexMethodIndex(inst.Inst()); in ProcessDexFile() local
392 ++types_accessed[dex_file.GetMethodId(method_idx).class_idx_.index_]; in ProcessDexFile()
393 if (dex_file.GetMethodId(method_idx).class_idx_ == accessor.GetClassIdx()) { in ProcessDexFile()
397 unique_method_ids.insert(method_idx); in ProcessDexFile()
402 uint32_t method_idx = DexMethodIndex(inst.Inst()); in ProcessDexFile() local
403 ++types_accessed[dex_file.GetMethodId(method_idx).class_idx_.index_]; in ProcessDexFile()
[all …]
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64_test.cc131 uint32_t method_idx = 2u; in Create2MethodsWithGap() local
142 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code)); in Create2MethodsWithGap()
143 method_idx += 1u; in Create2MethodsWithGap()
150 AddCompiledMethod(MethodRef(method_idx), last_method_code, last_method_patches); in Create2MethodsWithGap()
155 auto last_result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in Create2MethodsWithGap()
165 return method_idx; in Create2MethodsWithGap()
168 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
169 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
1069 uint32_t method_idx = 0u; in TestBakerField() local
1080 ++method_idx; in TestBakerField()
[all …]
/art/runtime/
Dclass_linker-inl.h258 uint32_t method_idx, in CheckInvokeClassMismatch() argument
264 [this, dex_cache, method_idx, class_loader]() REQUIRES_SHARED(Locks::mutator_lock_) { in CheckInvokeClassMismatch()
265 const dex::MethodId& method_id = dex_cache->GetDexFile()->GetMethodId(method_idx); in CheckInvokeClassMismatch()
268 DCHECK(klass != nullptr) << dex_cache->GetDexFile()->PrettyMethod(method_idx); in CheckInvokeClassMismatch()
273 inline ArtMethod* ClassLinker::LookupResolvedMethod(uint32_t method_idx, in LookupResolvedMethod() argument
277 ArtMethod* resolved = dex_cache->GetResolvedMethod(method_idx); in LookupResolvedMethod()
280 const dex::MethodId& method_id = dex_file.GetMethodId(method_idx); in LookupResolvedMethod()
283 resolved = FindResolvedMethod(klass, dex_cache, class_loader, method_idx); in LookupResolvedMethod()
291 uint32_t method_idx, in ResolveMethod() argument
300 ArtMethod* resolved_method = referrer->GetDexCache()->GetResolvedMethod(method_idx); in ResolveMethod()
[all …]
/art/runtime/verifier/
Dclass_verifier.cc117 const uint32_t method_idx = method.GetIndex(); in VerifyClass() local
118 if (method_idx == *previous_idx) { in VerifyClass()
123 *previous_idx = method_idx; in VerifyClass()
130 method_idx, in VerifyClass()
Dmethod_verifier.h102 uint32_t method_idx,
236 uint32_t method_idx,
254 uint32_t method_idx,
279 uint32_t method_idx,
/art/compiler/optimizing/
Doptimizing_compiler.cc255 bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const override;
261 uint32_t method_idx,
267 uint32_t method_idx,
434 bool OptimizingCompiler::CanCompileMethod([[maybe_unused]] uint32_t method_idx, in CanCompileMethod() argument
770 uint32_t method_idx = dex_compilation_unit.GetDexMethodIndex(); in TryCompile() local
784 if (Compiler::IsPathologicalCase(*code_item, method_idx, dex_file)) { in TryCompile()
801 CodeItemDebugInfoAccessor code_item_accessor(dex_file, code_item, method_idx); in TryCompile()
817 && !annotations::MethodContainsRSensitiveAccess(dex_file, *containing_class, method_idx); in TryCompile()
828 method_idx, in TryCompile()
971 uint32_t method_idx = dex_compilation_unit.GetDexMethodIndex(); in TryCompileIntrinsic() local
[all …]
Dbuilder.cc149 uint32_t method_idx = dex_compilation_unit_->GetDexMethodIndex(); in BuildIntrinsicGraph() local
150 const char* shorty = dex_file_->GetMethodShorty(dex_file_->GetMethodId(method_idx)); in BuildIntrinsicGraph()
/art/compiler/driver/
Ddex_compilation_unit.cc35 uint32_t method_idx, in DexCompilationUnit() argument
45 dex_method_idx_(method_idx), in DexCompilationUnit()
/art/test/dexdump/
Dall.txt107 method_idx : 0
124 method_idx : 1
154 method_idx : 2
202 method_idx : 3
250 method_idx : 4
274 method_idx : 5
301 method_idx : 6
322 method_idx : 7
350 method_idx : 8
377 method_idx : 11
[all …]
Dquoting.txt51 method_idx : 0
71 method_idx : 1
99 method_idx : 2
Dconst-method-handle.txt55 method_idx : 0
74 method_idx : 1
134 method_idx : 2
153 method_idx : 3
195 method_idx : 4
225 method_idx : 5
247 method_idx : 6
264 method_idx : 7
Dinvoke-custom.txt56 method_idx : 8
101 method_idx : 50
120 method_idx : 51
155 method_idx : 52
190 method_idx : 53
226 method_idx : 54
262 method_idx : 55
297 method_idx : 56
333 method_idx : 57
370 method_idx : 58
[all …]
/art/runtime/mirror/
Ddex_cache-inl.h252 inline ArtMethod* DexCache::GetResolvedMethod(uint32_t method_idx) { in GetResolvedMethod() argument
253 return GetResolvedMethodsEntry(method_idx); in GetResolvedMethod()
256 inline void DexCache::SetResolvedMethod(uint32_t method_idx, ArtMethod* method) { in SetResolvedMethod() argument
257 SetResolvedMethodsEntry(method_idx, method); in SetResolvedMethod()
/art/tools/veridex/
Dhidden_api_finder.h50 void CheckMethod(uint32_t method_idx, VeridexResolver* resolver, MethodReference ref);
/art/dex2oat/linker/x86_64/
Drelative_patcher_x86_64_test.cc36 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
37 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()

123