Home
last modified time | relevance | path

Searched refs:method_index (Results 1 – 25 of 33) sorted by relevance

12

/art/test/810-checker-invoke-super-default/smali/
DOtherClass.smali19 # We check that the method_index is 0, as that's the method index for the interface method.
21 ## CHECK-DAG: InvokeStaticOrDirect method_name:Itf.$noinline$foo method_index:0
22 ## CHECK-DAG: InvokeStaticOrDirect method_name:Itf.$noinline$foo method_index:0
23 ## CHECK-DAG: InvokeStaticOrDirect method_name:Itf.$noinline$foo method_index:0
DClass.smali19 # We check that the method_index is 0, as that's the method index for the interface method.
21 ## CHECK-DAG: InvokeStaticOrDirect method_name:Itf.$noinline$foo method_index:0
22 ## CHECK-DAG: InvokeStaticOrDirect method_name:Itf.$noinline$foo method_index:0
23 ## CHECK-DAG: InvokeStaticOrDirect method_name:Itf.$noinline$foo method_index:0
/art/dex2oat/linker/
Dindex_bss_mapping_encoder.h64 void Reset(uint32_t method_index, uint32_t bss_offset) { in Reset() argument
65 DCHECK_LE(MinimumBitsToStore(method_index), index_bits_); in Reset()
66 entry_.index_and_mask = method_index; // Mask bits set to 0. in Reset()
Doat_writer_test.cc483 size_t method_index = 0; in TEST_F() local
485 CheckMethod(&m, oat_class.GetOatMethod(method_index), dex_file); in TEST_F()
486 ++method_index; in TEST_F()
494 CheckMethod(&m, oat_class.GetOatMethod(method_index), dex_file); in TEST_F()
495 ++method_index; in TEST_F()
/art/libprofile/profile/
Dprofile_test_helper.h167 for (size_t method_index = 0; method_index != num_method_ids; ++method_index) { variable
172 size_t return_type_index = method_index % num_shared_ids;
173 size_t arg_type_index = (method_index / num_shared_ids) % num_shared_ids;
174 size_t method_name_index = (method_index / num_shared_ids) / num_shared_ids;
Dprofile_boot_info.cc29 void ProfileBootInfo::Add(const DexFile* dex_file, uint32_t method_index) { in Add() argument
38 methods_.push_back(std::make_pair(index, method_index)); in Add()
Dprofile_boot_info.h41 void Add(const DexFile* dex_file, uint32_t method_index);
Dprofile_compilation_info.cc2217 for (uint32_t method_index : create_shuffled_range(methods_required_in_profile, in GenerateTestProfile() local
2221 flags |= ((method_index & 1) != 0) in GenerateTestProfile()
2224 data->AddMethod(static_cast<MethodHotness::Flag>(flags), method_index); in GenerateTestProfile()
2239 ProfileCompilationInfo::DexFileData::FindOrAddHotMethod(uint16_t method_index) { in FindOrAddHotMethod() argument
2240 if (method_index >= num_method_ids) { in FindOrAddHotMethod()
2241 LOG(ERROR) << "Invalid method index " << method_index << ". num_method_ids=" << num_method_ids; in FindOrAddHotMethod()
2245 method_index, in FindOrAddHotMethod()
2329 MethodHotness::Flag flag, size_t method_index) const { in MethodFlagBitmapIndex()
2330 DCHECK_LT(method_index, num_method_ids); in MethodFlagBitmapIndex()
2333 return method_index + FlagBitmapIndex(flag) * num_method_ids; in MethodFlagBitmapIndex()
[all …]
Dprofile_compilation_info.h393 void AddMethod(ProfileIndexType profile_index, uint32_t method_index, MethodHotness::Flag flags) { in AddMethod() argument
396 DCHECK_LT(method_index, data->num_method_ids); in AddMethod()
397 data->AddMethod(flags, method_index); in AddMethod()
819 InlineCacheMap* FindOrAddHotMethod(uint16_t method_index);
833 size_t MethodFlagBitmapIndex(MethodHotness::Flag flag, size_t method_index) const;
/art/runtime/interpreter/mterp/
Dnterp.cc226 extern "C" const char* NterpGetShortyFromMethodId(ArtMethod* caller, uint32_t method_index) in NterpGetShortyFromMethodId() argument
229 return caller->GetDexFile()->GetMethodShorty(method_index); in NterpGetShortyFromMethodId()
259 uint16_t method_index = 0; in NterpGetMethod() local
262 method_index = inst->VRegB_35c(); in NterpGetMethod()
268 method_index = inst->VRegB_35c(); in NterpGetMethod()
274 method_index = inst->VRegB_35c(); in NterpGetMethod()
280 method_index = inst->VRegB_35c(); in NterpGetMethod()
285 method_index = inst->VRegB_35c(); in NterpGetMethod()
291 method_index = inst->VRegB_3rc(); in NterpGetMethod()
297 method_index = inst->VRegB_3rc(); in NterpGetMethod()
[all …]
/art/test/911-get-stack-trace/
Dstack_trace.cc61 auto callback = [&](jint method_index) -> jobjectArray { in TranslateJvmtiFrameInfoArray() argument
66 jvmtiError result2 = jvmti_env->GetMethodName(frames[method_index].method, &name, &sig, &gen); in TranslateJvmtiFrameInfoArray()
75 jvmtiError line_result = jvmti_env->GetLineNumberTable(frames[method_index].method, in TranslateJvmtiFrameInfoArray()
97 return env->NewStringUTF(StringPrintf("%" PRId64, frames[method_index].location).c_str()); in TranslateJvmtiFrameInfoArray()
101 frames[method_index].location); in TranslateJvmtiFrameInfoArray()
/art/tools/veridex/
Dhidden_api.cc73 std::string HiddenApi::GetApiMethodName(const DexFile& dex_file, uint32_t method_index) { in GetApiMethodName() argument
75 const dex::MethodId& method_id = dex_file.GetMethodId(method_index); in GetApiMethodName()
Dresolver.cc258 VeriMethod VeridexResolver::GetMethod(uint32_t method_index) { in GetMethod() argument
259 VeriMethod method_info = method_infos_[method_index]; in GetMethod()
262 const dex::MethodId& method_id = dex_file_.GetMethodId(method_index); in GetMethod()
271 method_infos_[method_index] = method_info; in GetMethod()
Dresolver.h54 VeriMethod GetMethod(uint32_t method_index);
Dhidden_api.h80 static std::string GetApiMethodName(const DexFile& dex_file, uint32_t method_index);
Dflow_analysis.h151 RegisterValue GetReturnType(uint32_t method_index);
/art/libdexfile/dex/
Ddex_file_verifier.cc359 bool CheckMethodAccessFlags(uint32_t method_index,
368 bool CheckConstructorProperties(uint32_t method_index, uint32_t constructor_flags);
3456 bool DexFileVerifier::CheckMethodAccessFlags(uint32_t method_index, in CheckMethodAccessFlags() argument
3468 GetMethodDescription(begin_, header_, method_index).c_str(), in CheckMethodAccessFlags()
3490 GetMethodDescription(begin_, header_, method_index).c_str(), in CheckMethodAccessFlags()
3504 method_index, in CheckMethodAccessFlags()
3505 GetMethodDescription(begin_, header_, method_index).c_str()); in CheckMethodAccessFlags()
3515 method_index, in CheckMethodAccessFlags()
3516 GetMethodDescription(begin_, header_, method_index).c_str()); in CheckMethodAccessFlags()
3533 method_index, in CheckMethodAccessFlags()
[all …]
/art/runtime/dex/
Ddex_file_annotations.h88 uint32_t method_index);
98 uint32_t method_index);
107 uint32_t method_index);
Ddex_file_annotations.cc287 uint32_t method_index) { in FindAnnotationSetForMethod() argument
298 if (method_annotations[i].method_idx_ == method_index) { in FindAnnotationSetForMethod()
328 uint32_t method_index = method->GetDexMethodIndex(); in FindAnnotationsItemForMethod() local
331 if (parameter_annotations[i].method_idx_ == method_index) { in FindAnnotationsItemForMethod()
1273 uint32_t method_index) { in GetNativeMethodAnnotationAccessFlags() argument
1275 FindAnnotationSetForMethod(dex_file, class_def, method_index); in GetNativeMethodAnnotationAccessFlags()
1315 uint32_t method_index) in MethodIsReachabilitySensitive() argument
1318 FindAnnotationSetForMethod(dex_file, class_def, method_index); in MethodIsReachabilitySensitive()
1328 uint32_t method_index) in MethodIsReachabilitySensitive() argument
1330 DCHECK(method_index < dex_file.NumMethodIds()); in MethodIsReachabilitySensitive()
[all …]
/art/profman/
Dprofman.cc1164 uint16_t method_index, in HasSingleInvoke() argument
1168 VisitAllInstructions(class_ref, method_index, [&](const DexInstructionPcPair& inst) -> bool { in HasSingleInvoke()
1175 << class_ref.dex_file->PrettyMethod(method_index); in HasSingleInvoke()
1185 << class_ref.dex_file->PrettyMethod(method_index); in HasSingleInvoke()
1282 uint32_t method_index) { in ResolveMethod() argument
1285 if (def == nullptr || method_index >= dex->NumMethodIds()) { in ResolveMethod()
1289 if (LIKELY(dex->GetCodeItemOffset(*def, method_index).has_value())) { in ResolveMethod()
1290 return ClassMethodReference{class_ref, method_index}; in ResolveMethod()
1293 const dex::MethodId& method_id = dex->GetMethodId(method_index); in ResolveMethod()
1480 const uint32_t method_index = FindMethodIndex(class_ref, method_spec); in ProcessLine() local
[all …]
/art/runtime/
Dcha.cc371 uint16_t method_index = method_in_super->GetMethodIndex(); in CheckVirtualMethodSingleImplementationInfo() local
376 method_index, in CheckVirtualMethodSingleImplementationInfo()
438 method_index < super_super->GetVTableLength()) { in CheckVirtualMethodSingleImplementationInfo()
439 ArtMethod* method_in_super_super = super_super->GetVTableEntry(method_index, pointer_size); in CheckVirtualMethodSingleImplementationInfo()
460 method_index, in CheckVirtualMethodSingleImplementationInfo()
Doat_file.h259 const OatMethod GetOatMethod(uint32_t method_index) const;
264 const OatMethodOffsets* GetOatMethodOffsets(uint32_t method_index) const;
269 uint32_t GetOatMethodOffsetsOffset(uint32_t method_index) const;
Doat_file.cc2327 uint32_t OatFile::OatClass::GetOatMethodOffsetsOffset(uint32_t method_index) const { in GetOatMethodOffsetsOffset()
2328 const OatMethodOffsets* oat_method_offsets = GetOatMethodOffsets(method_index); in GetOatMethodOffsetsOffset()
2335 const OatMethodOffsets* OatFile::OatClass::GetOatMethodOffsets(uint32_t method_index) const { in GetOatMethodOffsets()
2342 CHECK_LT(method_index, num_methods_) << oat_file_->GetLocation(); in GetOatMethodOffsets()
2346 methods_pointer_index = method_index; in GetOatMethodOffsets()
2349 if (!BitVector::IsBitSet(bitmap_, method_index)) { in GetOatMethodOffsets()
2352 size_t num_set_bits = BitVector::NumSetBits(bitmap_, method_index); in GetOatMethodOffsets()
2365 const OatFile::OatMethod OatFile::OatClass::GetOatMethod(uint32_t method_index) const { in GetOatMethod()
2366 const OatMethodOffsets* oat_method_offsets = GetOatMethodOffsets(method_index); in GetOatMethod()
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h68 uint32_t method_index = code_info.GetMethodIndexOf(inline_info); in GetResolvedMethod() local
72 DCHECK_EQ(inlined_method->GetDexMethodIndex(), method_index); in GetResolvedMethod()
83 uint32_t method_index = code_info.GetMethodIndexOf(inline_info); in GetResolvedMethod() local
84 ArtMethod* inlined_method = class_linker->LookupResolvedMethod(method_index, in GetResolvedMethod()
89 << method->GetDexFile()->PrettyMethod(method_index) << " . " in GetResolvedMethod()
/art/compiler/optimizing/
Dinliner.cc1086 size_t method_index = invoke_instruction->IsInvokeVirtual() in TryInlinePolymorphicCallToSameTarget() local
1099 method_index, pointer_size); in TryInlinePolymorphicCallToSameTarget()
1108 classes.GetReference(i)->AsClass()->GetEmbeddedVTableEntry(method_index, pointer_size); in TryInlinePolymorphicCallToSameTarget()
1143 method_index, in TryInlinePolymorphicCallToSameTarget()
1888 uint32_t method_index = resolved_method->GetDexMethodIndex(); in TryBuildAndInlineHelper() local
1907 method_index, in TryBuildAndInlineHelper()
1926 && !annotations::MethodContainsRSensitiveAccess(callee_dex_file, callee_class, method_index); in TryBuildAndInlineHelper()
1934 method_index, in TryBuildAndInlineHelper()
1965 << "Method " << callee_dex_file.PrettyMethod(method_index) in TryBuildAndInlineHelper()

12