Home
last modified time | relevance | path

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

12

/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.cc498 size_t method_index = 0; in TEST_F() local
500 CheckMethod(&m, oat_class.GetOatMethod(method_index), dex_file); in TEST_F()
501 ++method_index; in TEST_F()
509 CheckMethod(&m, oat_class.GetOatMethod(method_index), dex_file); in TEST_F()
510 ++method_index; in TEST_F()
/art/runtime/interpreter/mterp/
Dnterp.cc102 extern "C" const char* NterpGetShortyFromMethodId(ArtMethod* caller, uint32_t method_index) in NterpGetShortyFromMethodId() argument
105 return caller->GetDexFile()->GetMethodShorty(method_index); in NterpGetShortyFromMethodId()
134 uint16_t method_index = 0; in NterpGetMethod() local
137 method_index = inst->VRegB_35c(); in NterpGetMethod()
143 method_index = inst->VRegB_35c(); in NterpGetMethod()
149 method_index = inst->VRegB_35c(); in NterpGetMethod()
155 method_index = inst->VRegB_35c(); in NterpGetMethod()
160 method_index = inst->VRegB_35c(); in NterpGetMethod()
166 method_index = inst->VRegB_3rc(); in NterpGetMethod()
172 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);
Dflow_analysis.cc132 RegisterValue VeriFlowAnalysis::GetReturnType(uint32_t method_index) { in GetReturnType() argument
134 const dex::MethodId& method_id = dex_file.GetMethodId(method_index); in GetReturnType()
137 return RegisterValue(RegisterSource::kMethod, DexFileReference(&dex_file, method_index), cls); in GetReturnType()
/art/libprofile/profile/
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.cc839 uint16_t method_index = last_method_index + diff_with_last_method_index; in ReadMethods() local
840 last_method_index = method_index; in ReadMethods()
841 InlineCacheMap* inline_cache = data->FindOrAddHotMethod(method_index); in ReadMethods()
1884 for (uint32_t method_index : create_shuffled_range(methods_required_in_profile, in GenerateTestProfile() local
1888 flags |= ((method_index & 1) != 0) in GenerateTestProfile()
1891 data->AddMethod(static_cast<MethodHotness::Flag>(flags), method_index); in GenerateTestProfile()
2008 ProfileCompilationInfo::DexFileData::FindOrAddHotMethod(uint16_t method_index) { in FindOrAddHotMethod() argument
2009 if (method_index >= num_method_ids) { in FindOrAddHotMethod()
2010 LOG(ERROR) << "Invalid method index " << method_index << ". num_method_ids=" << num_method_ids; in FindOrAddHotMethod()
2014 method_index, in FindOrAddHotMethod()
[all …]
Dprofile_compilation_info.h675 InlineCacheMap* FindOrAddHotMethod(uint16_t method_index);
683 size_t MethodFlagBitmapIndex(MethodHotness::Flag flag, size_t method_index) const;
/art/compiler/optimizing/
Dinliner.cc501 uint32_t method_index = invoke_instruction->GetDexMethodIndex(); in TryInline() local
503 LOG_TRY() << caller_dex_file.PrettyMethod(method_index); in TryInline()
1191 size_t method_index = invoke_instruction->IsInvokeVirtual() in TryInlinePolymorphicCallToSameTarget() local
1204 method_index, pointer_size); in TryInlinePolymorphicCallToSameTarget()
1212 new_method = classes->Get(i)->GetEmbeddedVTableEntry(method_index, pointer_size); in TryInlinePolymorphicCallToSameTarget()
1247 method_index, in TryInlinePolymorphicCallToSameTarget()
1860 const uint32_t method_index = resolved_method->GetMethodIndex(); in CanInlineBody() local
1867 << "Method " << callee_dex_file.PrettyMethod(method_index) in CanInlineBody()
1878 << "Method " << callee_dex_file.PrettyMethod(method_index) in CanInlineBody()
1885 << "Method " << callee_dex_file.PrettyMethod(method_index) in CanInlineBody()
[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()
1294 uint32_t method_index) { in GetNativeMethodAnnotationAccessFlags() argument
1296 FindAnnotationSetForMethod(dex_file, class_def, method_index); in GetNativeMethodAnnotationAccessFlags()
1336 uint32_t method_index) in MethodIsReachabilitySensitive() argument
1339 FindAnnotationSetForMethod(dex_file, class_def, method_index); in MethodIsReachabilitySensitive()
1349 uint32_t method_index) in MethodIsReachabilitySensitive() argument
1351 DCHECK(method_index < dex_file.NumMethodIds()); in MethodIsReachabilitySensitive()
[all …]
/art/libdexfile/dex/
Ddex_file_verifier.cc359 bool CheckMethodAccessFlags(uint32_t method_index,
368 bool CheckConstructorProperties(uint32_t method_index, uint32_t constructor_flags);
3461 bool DexFileVerifier::CheckMethodAccessFlags(uint32_t method_index, in CheckMethodAccessFlags() argument
3473 GetMethodDescription(begin_, header_, method_index).c_str(), in CheckMethodAccessFlags()
3495 GetMethodDescription(begin_, header_, method_index).c_str(), in CheckMethodAccessFlags()
3509 method_index, in CheckMethodAccessFlags()
3510 GetMethodDescription(begin_, header_, method_index).c_str()); in CheckMethodAccessFlags()
3520 method_index, in CheckMethodAccessFlags()
3521 GetMethodDescription(begin_, header_, method_index).c_str()); in CheckMethodAccessFlags()
3538 method_index, in CheckMethodAccessFlags()
[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.h254 const OatMethod GetOatMethod(uint32_t method_index) const;
259 const OatMethodOffsets* GetOatMethodOffsets(uint32_t method_index) const;
264 uint32_t GetOatMethodOffsetsOffset(uint32_t method_index) const;
Doat_file.cc2105 uint32_t OatFile::OatClass::GetOatMethodOffsetsOffset(uint32_t method_index) const { in GetOatMethodOffsetsOffset()
2106 const OatMethodOffsets* oat_method_offsets = GetOatMethodOffsets(method_index); in GetOatMethodOffsetsOffset()
2113 const OatMethodOffsets* OatFile::OatClass::GetOatMethodOffsets(uint32_t method_index) const { in GetOatMethodOffsets()
2122 methods_pointer_index = method_index; in GetOatMethodOffsets()
2125 if (!BitVector::IsBitSet(bitmap_, method_index)) { in GetOatMethodOffsets()
2128 size_t num_set_bits = BitVector::NumSetBits(bitmap_, method_index); in GetOatMethodOffsets()
2135 const OatFile::OatMethod OatFile::OatClass::GetOatMethod(uint32_t method_index) const { in GetOatMethod()
2136 const OatMethodOffsets* oat_method_offsets = GetOatMethodOffsets(method_index); in GetOatMethod()
Dart_method.cc212 uint16_t method_index = GetMethodIndex(); in FindOverriddenMethod() local
216 if (super_class->HasVTable() && method_index < super_class->GetVTableLength()) { in FindOverriddenMethod()
217 result = super_class->GetVTableEntry(method_index, pointer_size); in FindOverriddenMethod()
/art/profman/
Dprofman.cc998 uint16_t method_index, in HasSingleInvoke() argument
1003 method_index); in HasSingleInvoke()
1012 << dex_file->PrettyMethod(method_index); in HasSingleInvoke()
1020 LOG(ERROR) << "Could not find any INVOKE_VIRTUAL: " << dex_file->PrettyMethod(method_index); in HasSingleInvoke()
1157 const uint32_t method_index = FindMethodIndex(class_ref, method_spec); in ProcessLine() local
1158 if (method_index == dex::kDexNoIndex) { in ProcessLine()
1165 if (!HasSingleInvoke(class_ref, method_index, &dex_pc)) { in ProcessLine()
1179 MethodReference ref(class_ref.dex_file, method_index); in ProcessLine()
1209 const uint32_t method_index = FindMethodIndex(class_ref, method_str); in ProcessBootLine() local
1210 if (method_index == dex::kDexNoIndex) { in ProcessBootLine()
[all …]
/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/dex/
Dinline_method_analyser.cc149 uint32_t method_index = invoke_direct->VRegB_35c(); in GetTargetConstructor() local
151 method_index, method->GetDexCache(), method->GetClassLoader()); in GetTargetConstructor()

12