Home
last modified time | relevance | path

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

123

/art/runtime/jit/
Dprofile_compilation_info_test.cc604 for (uint16_t method_idx = 0; method_idx < 10; method_idx++) { in TEST_F() local
607 ASSERT_TRUE(AddMethod("dex_location1", /* checksum */ 1, method_idx, pmi, &saved_info)); in TEST_F()
609 ASSERT_TRUE(AddMethod("dex_location4", /* checksum */ 4, method_idx, pmi, &saved_info)); in TEST_F()
639 for (uint16_t method_idx = 0; method_idx < 10; method_idx++) { in TEST_F() local
640 ASSERT_TRUE(AddMethod("dex_location1", /* checksum */ 1, method_idx, pmi, &saved_info)); in TEST_F()
650 for (uint16_t method_idx = 0; method_idx < 10; method_idx++) { in TEST_F() local
651 ASSERT_TRUE(AddMethod("dex_location1", /* checksum */ 1, method_idx, pmi, &saved_info_extra)); in TEST_F()
682 for (uint16_t method_idx = 0; method_idx < 10; method_idx++) { in TEST_F() local
683 ASSERT_TRUE(AddMethod("dex_location1", /* checksum */ 1, method_idx, pmi, &saved_info)); in TEST_F()
693 for (uint16_t method_idx = 5; method_idx < 10; method_idx++) { in TEST_F() local
[all …]
/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()
137 uint16_t method_idx, in Build35c() argument
142 out[1] = method_idx; in Build35c()
154 uint16_t method_idx, in DumpInst35c() argument
157 Build35c(inst, code, method_idx, args); in DumpInst35c()
Ddex_instruction.cc396 uint32_t method_idx = VRegB_35c(); in DumpString() local
398 os << "}, " << file->PrettyMethod(method_idx) << " // method@" << method_idx; in DumpString()
405 uint32_t method_idx = VRegB_35c(); in DumpString() local
407 os << "}, // vtable@" << method_idx; in DumpString()
438 uint32_t method_idx = VRegB_3rc(); in DumpString() local
440 << file->PrettyMethod(method_idx) << " // method@" << method_idx; in DumpString()
446 uint32_t method_idx = VRegB_3rc(); in DumpString() local
448 << "// vtable@" << method_idx; in DumpString()
470 uint32_t method_idx = VRegB_45cc(); in DumpString() local
481 os << ", " << file->PrettyMethod(method_idx) << ", " << file->GetShorty(proto_idx) in DumpString()
[all …]
Ddex_file.cc222 uint32_t method_idx) const { in FindCodeItemOffset()
228 if (it.GetMemberIndex() == method_idx) { in FindCodeItemOffset()
234 if (it.GetMemberIndex() == method_idx) { in FindCodeItemOffset()
239 LOG(FATAL) << "Unable to find method " << method_idx; in FindCodeItemOffset()
573 std::string DexFile::PrettyMethod(uint32_t method_idx, bool with_signature) const { in PrettyMethod() argument
574 if (method_idx >= NumMethodIds()) { in PrettyMethod()
575 return StringPrintf("<<invalid-method-idx-%d>>", method_idx); in PrettyMethod()
577 const DexFile::MethodId& method_id = GetMethodId(method_idx); in PrettyMethod()
/art/compiler/
Dcompiler.cc43 uint32_t method_idx, in IsPathologicalCase() argument
54 << " in " << dex_file.PrettyMethod(method_idx); in IsPathologicalCase()
59 << accessor.RegistersSize() << " in " << dex_file.PrettyMethod(method_idx); in IsPathologicalCase()
Dcompiler.h61 virtual bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const = 0;
67 uint32_t method_idx,
73 uint32_t method_idx,
111 uint32_t method_idx,
/art/compiler/linker/arm/
Drelative_patcher_thumb2_test.cc185 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
186 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
590 uint32_t method_idx = 0u; in TestBakerFieldWide() local
602 ++method_idx; in TestBakerFieldWide()
603 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TestBakerFieldWide()
609 uint32_t thunk_offset = GetMethodOffset(method_idx) + RoundUp(kMethodCodeSize, kArmAlignment); in TestBakerFieldWide()
610 method_idx = 0u; in TestBakerFieldWide()
613 ++method_idx; in TestBakerFieldWide()
614 uint32_t bne = BneWWithOffset(GetMethodOffset(method_idx) + kLiteralOffset, thunk_offset); in TestBakerFieldWide()
619 CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TestBakerFieldWide()
[all …]
/art/runtime/
Dclass_linker-inl.h205 uint32_t method_idx, in CheckInvokeClassMismatch() argument
210 [this, dex_cache, method_idx, class_loader]() REQUIRES_SHARED(Locks::mutator_lock_) { in CheckInvokeClassMismatch()
211 const DexFile::MethodId& method_id = dex_cache->GetDexFile()->GetMethodId(method_idx); in CheckInvokeClassMismatch()
219 inline ArtMethod* ClassLinker::LookupResolvedMethod(uint32_t method_idx, in LookupResolvedMethod() argument
223 ArtMethod* resolved = dex_cache->GetResolvedMethod(method_idx, pointer_size); in LookupResolvedMethod()
226 const DexFile::MethodId& method_id = dex_file.GetMethodId(method_idx); in LookupResolvedMethod()
229 resolved = FindResolvedMethod(klass, dex_cache, class_loader, method_idx); in LookupResolvedMethod()
236 inline ArtMethod* ClassLinker::GetResolvedMethod(uint32_t method_idx, ArtMethod* referrer) { in GetResolvedMethod() argument
245 method_idx, image_pointer_size_); in GetResolvedMethod()
255 if (CheckInvokeClassMismatch</* kThrow */ false>(dex_cache, type, method_idx, class_loader)) { in GetResolvedMethod()
[all …]
Dcommon_throws.cc107 void ThrowAbstractMethodError(uint32_t method_idx, const DexFile& dex_file) { in ThrowAbstractMethodError() argument
110 dex_file.PrettyMethod(method_idx, in ThrowAbstractMethodError()
429 static void ThrowNullPointerExceptionForMethodAccessImpl(uint32_t method_idx, in ThrowNullPointerExceptionForMethodAccessImpl() argument
435 << dex_file.PrettyMethod(method_idx, true) << "' on a null object reference"; in ThrowNullPointerExceptionForMethodAccessImpl()
439 void ThrowNullPointerExceptionForMethodAccess(uint32_t method_idx, in ThrowNullPointerExceptionForMethodAccess() argument
444 ThrowNullPointerExceptionForMethodAccessImpl(method_idx, dex_file, type); in ThrowNullPointerExceptionForMethodAccess()
616 uint16_t method_idx = method->GetIndexFromQuickening(throw_dex_pc); in ThrowNullPointerExceptionFromDexPC() local
617 if (method_idx != DexFile::kDexNoIndex16) { in ThrowNullPointerExceptionFromDexPC()
619 ThrowNullPointerExceptionForMethodAccess(method_idx, kVirtual); in ThrowNullPointerExceptionFromDexPC()
/art/compiler/linker/arm64/
Drelative_patcher_arm64_test.cc127 uint32_t method_idx = 2u; in Create2MethodsWithGap() local
138 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code)); in Create2MethodsWithGap()
139 method_idx += 1u; in Create2MethodsWithGap()
146 AddCompiledMethod(MethodRef(method_idx), last_method_code, last_method_patches); in Create2MethodsWithGap()
151 auto last_result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in Create2MethodsWithGap()
161 return method_idx; in Create2MethodsWithGap()
164 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
165 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
915 uint32_t method_idx = 0u; in TestBakerField() local
927 ++method_idx; in TestBakerField()
[all …]
/art/compiler/driver/
Ddex_compilation_unit.cc31 uint32_t method_idx, in DexCompilationUnit() argument
40 dex_method_idx_(method_idx), in DexCompilationUnit()
Dcompiler_driver-inl.h107 uint32_t method_idx, in ResolveMethod() argument
112 method_idx, dex_cache, class_loader, /* referrer */ nullptr, invoke_type); in ResolveMethod()
Dcompiler_driver.cc461 uint32_t method_idx, in CompileMethodHarness() argument
471 MethodReference method_ref(&dex_file, method_idx); in CompileMethodHarness()
479 method_idx, in CompileMethodHarness()
489 LOG(WARNING) << "Compilation of " << dex_file.PrettyMethod(method_idx) in CompileMethodHarness()
511 LOG(FATAL) << "Unexpected exception compiling: " << dex_file.PrettyMethod(method_idx) << "\n" in CompileMethodHarness()
523 uint32_t method_idx, in CompileMethodDex2Dex() argument
535 uint32_t method_idx, in CompileMethodDex2Dex()
542 MethodReference method_ref(&dex_file, method_idx); in CompileMethodDex2Dex()
557 method_idx, in CompileMethodDex2Dex()
572 method_idx, in CompileMethodDex2Dex()
[all …]
/art/compiler/optimizing/
Doptimizing_compiler.cc266 bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const OVERRIDE;
272 uint32_t method_idx,
278 uint32_t method_idx,
427 bool OptimizingCompiler::CanCompileMethod(uint32_t method_idx ATTRIBUTE_UNUSED, in CanCompileMethod()
748 uint32_t method_idx = dex_compilation_unit.GetDexMethodIndex(); in TryCompile() local
762 if (Compiler::IsPathologicalCase(*code_item, method_idx, dex_file)) { in TryCompile()
778 CodeItemDebugInfoAccessor code_item_accessor(dex_file, code_item, method_idx); in TryCompile()
783 method_idx, in TryCompile()
893 uint32_t method_idx = dex_compilation_unit.GetDexMethodIndex(); in TryCompileIntrinsic() local
908 method_idx, in TryCompileIntrinsic()
[all …]
Dinstruction_builder.cc432 uint32_t method_idx = dex_compilation_unit_->GetDexMethodIndex(); in BuildIntrinsic() local
433 MethodReference target_method(dex_file_, method_idx); in BuildIntrinsic()
445 method_idx, in BuildIntrinsic()
456 dex_file_->GetMethodShorty(method_idx), in BuildIntrinsic()
828 ArtMethod* HInstructionBuilder::ResolveMethod(uint16_t method_idx, InvokeType invoke_type) { in ResolveMethod() argument
836 method_idx, in ResolveMethod()
870 dex_compilation_unit_->GetDexFile()->GetMethodId(method_idx).class_idx_, in ResolveMethod()
918 uint32_t method_idx, in BuildInvoke() argument
924 const char* descriptor = dex_file_->GetMethodShorty(method_idx); in BuildInvoke()
934 ArtMethod* resolved_method = ResolveMethod(method_idx, invoke_type); in BuildInvoke()
[all …]
/art/runtime/mirror/
Ddex_cache-inl.h212 inline uint32_t DexCache::MethodSlotIndex(uint32_t method_idx) { in MethodSlotIndex() argument
213 DCHECK_LT(method_idx, GetDexFile()->NumMethodIds()); in MethodSlotIndex()
214 const uint32_t slot_idx = method_idx % kDexCacheMethodCacheSize; in MethodSlotIndex()
219 inline ArtMethod* DexCache::GetResolvedMethod(uint32_t method_idx, PointerSize ptr_size) { in GetResolvedMethod() argument
221 auto pair = GetNativePairPtrSize(GetResolvedMethods(), MethodSlotIndex(method_idx), ptr_size); in GetResolvedMethod()
222 return pair.GetObjectForIndex(method_idx); in GetResolvedMethod()
225 inline void DexCache::SetResolvedMethod(uint32_t method_idx, in SetResolvedMethod() argument
230 MethodDexCachePair pair(method, method_idx); in SetResolvedMethod()
231 SetNativePairPtrSize(GetResolvedMethods(), MethodSlotIndex(method_idx), pair, ptr_size); in SetResolvedMethod()
234 inline void DexCache::ClearResolvedMethod(uint32_t method_idx, PointerSize ptr_size) { in ClearResolvedMethod() argument
[all …]
/art/compiler/dex/
Ddex_to_dex_compiler.cc466 uint32_t method_idx = GetIndexForInstruction(inst, in CompileInvokeVirtual() local
473 method_idx, in CompileInvokeVirtual()
488 << "(" << GetDexFile().PrettyMethod(method_idx, true) << ")" in CompileInvokeVirtual()
490 << " by replacing method index " << method_idx in CompileInvokeVirtual()
504 quickened_info_.push_back(QuickenedInfo(dex_pc, method_idx)); in CompileInvokeVirtual()
512 uint32_t method_idx, in CompileMethod() argument
529 method_idx, in CompileMethod()
531 driver_->GetVerifiedMethod(&dex_file, method_idx), in CompileMethod()
565 MethodReference method_ref(&dex_file, method_idx); in CompileMethod()
570 << dex_file.PrettyMethod(method_idx); in CompileMethod()
[all …]
Ddex_to_dex_decompiler_test.cc95 uint32_t method_idx = it.GetMemberIndex(); in RunTest() local
97 compiler_driver_->GetCompiledMethod(MethodReference(updated_dex_file, method_idx)); in RunTest()
/art/compiler/jni/quick/
Djni_compiler.cc119 uint32_t method_idx, in ArtJniCompileMethodInternal() argument
125 const char* shorty = dex_file.GetMethodShorty(dex_file.GetMethodId(method_idx)); in ArtJniCompileMethodInternal()
136 << dex_file.PrettyMethod(method_idx, /* with signature */ true) in ArtJniCompileMethodInternal()
141 << dex_file.PrettyMethod(method_idx, /* with signature */ true); in ArtJniCompileMethodInternal()
146 << dex_file.PrettyMethod(method_idx, /* with signature */ true); in ArtJniCompileMethodInternal()
153 << dex_file.PrettyMethod(method_idx, /* with_signature */ true); in ArtJniCompileMethodInternal()
164 << dex_file.PrettyMethod(method_idx, /* with_signature */ true); in ArtJniCompileMethodInternal()
168 << dex_file.PrettyMethod(method_idx, /* with_signature */ true); in ArtJniCompileMethodInternal()
172 << dex_file.PrettyMethod(method_idx, /* with_signature */ true); in ArtJniCompileMethodInternal()
775 uint32_t method_idx, in ArtQuickJniCompileMethod() argument
[all …]
/art/compiler/linker/mips64/
Drelative_patcher_mips64_test.cc37 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
38 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
/art/compiler/linker/mips/
Drelative_patcher_mips32r6_test.cc35 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
36 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
Drelative_patcher_mips_test.cc36 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
37 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
/art/runtime/verifier/
Dverifier_deps.h93 uint32_t method_idx,
160 MethodResolution(uint32_t method_idx, in MethodResolution()
163 : MethodResolutionBase(method_idx, access_flags, declaring_class_idx) {} in MethodResolution()
270 uint32_t method_idx,
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h433 inline ArtMethod* FindMethodFromCode(uint32_t method_idx, in FindMethodFromCode() argument
443 resolved_method = class_linker->ResolveMethod<resolve_mode>(self, method_idx, referrer, type); in FindMethodFromCode()
447 resolved_method = class_linker->ResolveMethod<resolve_mode>(self, method_idx, referrer, type); in FindMethodFromCode()
465 ThrowNullPointerExceptionForMethodAccess(method_idx, type); in FindMethodFromCode()
497 referrer->GetDexFile()->GetMethodId(method_idx).class_idx_; in FindMethodFromCode()
585 ArtMethod* FindMethodFromCode<_type, _access_check>(uint32_t method_idx, \
656 inline ArtMethod* FindMethodFast(uint32_t method_idx, in FindMethodFast() argument
669 ArtMethod* resolved_method = linker->GetResolvedMethod<type, resolve_mode>(method_idx, referrer); in FindMethodFast()
680 dex::TypeIndex method_type_idx = dex_cache->GetDexFile()->GetMethodId(method_idx).class_idx_; in FindMethodFast()
/art/tools/veridex/
Dhidden_api_finder.h48 void CheckMethod(uint32_t method_idx, VeridexResolver* resolver, MethodReference ref);

123