Home
last modified time | relevance | path

Searched refs:method_idx (Results 1 – 25 of 68) 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.cc396 uint32_t method_idx = VRegB_35c(); in DumpString() local
398 os << "}, " << file->PrettyMethod(method_idx) << " // method@" << 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 uint16_t method_idx = VRegB_45cc(); in DumpString() local
481 os << ", " << file->PrettyMethod(method_idx) in DumpString()
487 os << "method@" << method_idx << ", proto@" << proto_idx; in DumpString()
494 uint16_t method_idx = VRegB_4rcc(); in DumpString() local
[all …]
Ddex_file.cc228 uint32_t DexFile::FindCodeItemOffset(const ClassDef& class_def, uint32_t method_idx) const { in FindCodeItemOffset()
232 if (method.GetIndex() == method_idx) { in FindCodeItemOffset()
236 LOG(FATAL) << "Unable to find method " << method_idx; in FindCodeItemOffset()
522 std::string DexFile::PrettyMethod(uint32_t method_idx, bool with_signature) const { in PrettyMethod() argument
523 if (method_idx >= NumMethodIds()) { in PrettyMethod()
524 return StringPrintf("<<invalid-method-idx-%d>>", method_idx); in PrettyMethod()
526 const MethodId& method_id = GetMethodId(method_idx); in PrettyMethod()
/art/libprofile/profile/
Dprofile_compilation_info_test.cc74 uint16_t method_idx, in AddMethod() argument
77 return info->AddMethod(ProfileMethodInfo(MethodReference(dex, method_idx)), in AddMethod()
84 uint16_t method_idx, in AddMethod() argument
88 ProfileMethodInfo(MethodReference(dex, method_idx), inline_caches), in AddMethod()
108 uint16_t method_idx, in GetMethod() argument
110 return info.GetHotMethodInfo(MethodReference(dex, method_idx), annotation); in GetMethod()
237 for (uint32_t method_idx = 0; method_idx < kMaxMethodIds; method_idx++) { in SizeStressTest() local
243 method_idx, in SizeStressTest()
252 method_idx, in SizeStressTest()
509 for (uint16_t method_idx = 0; method_idx < 10; method_idx++) { in TEST_F() local
[all …]
/art/compiler/
Dcompiler.cc49 uint32_t method_idx, in IsPathologicalCase() argument
60 << " in " << dex_file.PrettyMethod(method_idx); in IsPathologicalCase()
65 << accessor.RegistersSize() << " in " << dex_file.PrettyMethod(method_idx); in IsPathologicalCase()
Dcompiler.h59 virtual bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const = 0;
65 uint32_t method_idx,
71 uint32_t method_idx,
97 uint32_t method_idx,
/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()
709 uint32_t method_idx = 0u; in TestBakerFieldWide() local
721 ++method_idx; in TestBakerFieldWide()
[all …]
/art/runtime/entrypoints/jni/
Djni_entrypoints.cc43 uint32_t method_idx = (instruction.Opcode() == Instruction::INVOKE_STATIC) in GetInvokeStaticMethodIndex() local
46 return method_idx; in GetInvokeStaticMethodIndex()
61 uint32_t method_idx = GetInvokeStaticMethodIndex(method, dex_pc); in artFindNativeMethodRunnable() local
63 self, method_idx, method, kStatic); in artFindNativeMethodRunnable()
69 MaybeUpdateBssMethodEntry(target_method, MethodReference(method->GetDexFile(), method_idx)); in artFindNativeMethodRunnable()
168 uint32_t method_idx = GetInvokeStaticMethodIndex(caller, dex_pc); in artCriticalNativeFrameSize() local
170 const char* shorty = dex_file->GetMethodShorty(dex_file->GetMethodId(method_idx), &shorty_len); in artCriticalNativeFrameSize()
/art/runtime/
Dclass_linker-inl.h274 uint32_t method_idx, in CheckInvokeClassMismatch() argument
279 [this, dex_cache, method_idx, class_loader]() REQUIRES_SHARED(Locks::mutator_lock_) { in CheckInvokeClassMismatch()
280 const dex::MethodId& method_id = dex_cache->GetDexFile()->GetMethodId(method_idx); in CheckInvokeClassMismatch()
283 DCHECK(klass != nullptr) << dex_cache->GetDexFile()->PrettyMethod(method_idx); in CheckInvokeClassMismatch()
288 inline ArtMethod* ClassLinker::LookupResolvedMethod(uint32_t method_idx, in LookupResolvedMethod() argument
292 ArtMethod* resolved = dex_cache->GetResolvedMethod(method_idx, pointer_size); in LookupResolvedMethod()
295 const dex::MethodId& method_id = dex_file.GetMethodId(method_idx); in LookupResolvedMethod()
298 resolved = FindResolvedMethod(klass, dex_cache, class_loader, method_idx); in LookupResolvedMethod()
305 inline ArtMethod* ClassLinker::GetResolvedMethod(uint32_t method_idx, ArtMethod* referrer) { in GetResolvedMethod() argument
314 method_idx, image_pointer_size_); in GetResolvedMethod()
[all …]
Dcommon_throws.cc105 void ThrowAbstractMethodError(uint32_t method_idx, const DexFile& dex_file) { in ThrowAbstractMethodError() argument
108 dex_file.PrettyMethod(method_idx, in ThrowAbstractMethodError()
431 static void ThrowNullPointerExceptionForMethodAccessImpl(uint32_t method_idx, in ThrowNullPointerExceptionForMethodAccessImpl() argument
437 << dex_file.PrettyMethod(method_idx, true) << "' on a null object reference"; in ThrowNullPointerExceptionForMethodAccessImpl()
441 void ThrowNullPointerExceptionForMethodAccess(uint32_t method_idx, InvokeType type) { in ThrowNullPointerExceptionForMethodAccess() argument
443 ThrowNullPointerExceptionForMethodAccessImpl(method_idx, dex_file, type); in ThrowNullPointerExceptionForMethodAccess()
621 uint16_t method_idx = method->GetIndexFromQuickening(throw_dex_pc); in ThrowNullPointerExceptionFromDexPC() local
622 if (method_idx != DexFile::kDexNoIndex16) { in ThrowNullPointerExceptionFromDexPC()
624 ThrowNullPointerExceptionForMethodAccess(method_idx, kVirtual); in ThrowNullPointerExceptionFromDexPC()
/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()
1050 uint32_t method_idx = 0u; in TestBakerField() local
1061 ++method_idx; in TestBakerField()
[all …]
/art/compiler/driver/
Dcompiler_options.cc160 uint32_t method_idx) const { in GetVerifiedMethod()
161 MethodReference ref(dex_file, method_idx); in GetVerifiedMethod()
165 bool CompilerOptions::IsMethodVerifiedWithoutFailures(uint32_t method_idx, in IsMethodVerifiedWithoutFailures() argument
168 const VerifiedMethod* verified_method = GetVerifiedMethod(&dex_file, method_idx); in IsMethodVerifiedWithoutFailures()
Ddex_compilation_unit.cc35 uint32_t method_idx, in DexCompilationUnit() argument
45 dex_method_idx_(method_idx), in DexCompilationUnit()
/art/compiler/optimizing/
Doptimizing_compiler.cc275 bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const override;
281 uint32_t method_idx,
287 uint32_t method_idx,
453 bool OptimizingCompiler::CanCompileMethod(uint32_t method_idx ATTRIBUTE_UNUSED, in CanCompileMethod()
741 uint32_t method_idx = dex_compilation_unit.GetDexMethodIndex(); in TryCompile() local
755 if (Compiler::IsPathologicalCase(*code_item, method_idx, dex_file)) { in TryCompile()
770 CodeItemDebugInfoAccessor code_item_accessor(dex_file, code_item, method_idx); in TryCompile()
788 && !annotations::MethodContainsRSensitiveAccess(dex_file, *containing_class, method_idx); in TryCompile()
799 method_idx, in TryCompile()
909 uint32_t method_idx = dex_compilation_unit.GetDexMethodIndex(); in TryCompileIntrinsic() local
[all …]
Dbuilder.cc164 uint32_t method_idx = dex_compilation_unit_->GetDexMethodIndex(); in BuildIntrinsicGraph() local
165 const char* shorty = dex_file_->GetMethodShorty(dex_file_->GetMethodId(method_idx)); in BuildIntrinsicGraph()
/art/dex2oat/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_->GetCompilerOptions().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 …]
/art/runtime/mirror/
Ddex_cache-inl.h272 inline uint32_t DexCache::MethodSlotIndex(uint32_t method_idx) { in MethodSlotIndex() argument
273 DCHECK_LT(method_idx, GetDexFile()->NumMethodIds()); in MethodSlotIndex()
274 const uint32_t slot_idx = method_idx % kDexCacheMethodCacheSize; in MethodSlotIndex()
279 inline ArtMethod* DexCache::GetResolvedMethod(uint32_t method_idx, PointerSize ptr_size) { in GetResolvedMethod() argument
281 auto pair = GetNativePairPtrSize(GetResolvedMethods(), MethodSlotIndex(method_idx), ptr_size); in GetResolvedMethod()
282 return pair.GetObjectForIndex(method_idx); in GetResolvedMethod()
285 inline void DexCache::SetResolvedMethod(uint32_t method_idx, in SetResolvedMethod() argument
290 MethodDexCachePair pair(method, method_idx); in SetResolvedMethod()
291 SetNativePairPtrSize(GetResolvedMethods(), MethodSlotIndex(method_idx), pair, ptr_size); in SetResolvedMethod()
294 inline void DexCache::ClearResolvedMethod(uint32_t method_idx, PointerSize ptr_size) { in ClearResolvedMethod() argument
[all …]
/art/compiler/jni/quick/
Djni_compiler.cc117 uint32_t method_idx, in ArtJniCompileMethodInternal() argument
123 const char* shorty = dex_file.GetMethodShorty(dex_file.GetMethodId(method_idx)); in ArtJniCompileMethodInternal()
135 << dex_file.PrettyMethod(method_idx, /* with signature */ true) in ArtJniCompileMethodInternal()
140 << dex_file.PrettyMethod(method_idx, /* with signature */ true); in ArtJniCompileMethodInternal()
145 << dex_file.PrettyMethod(method_idx, /* with signature */ true); in ArtJniCompileMethodInternal()
152 << dex_file.PrettyMethod(method_idx, /* with_signature= */ true); in ArtJniCompileMethodInternal()
163 << dex_file.PrettyMethod(method_idx, /* with_signature= */ true); in ArtJniCompileMethodInternal()
167 << dex_file.PrettyMethod(method_idx, /* with_signature= */ true); in ArtJniCompileMethodInternal()
171 << dex_file.PrettyMethod(method_idx, /* with_signature= */ true); in ArtJniCompileMethodInternal()
797 uint32_t method_idx, in ArtQuickJniCompileMethod() argument
[all …]
Djni_compiler.h67 uint32_t method_idx,
/art/runtime/verifier/
Dclass_verifier.cc257 const uint32_t method_idx = method.GetIndex(); in VerifyClass() local
258 if (method_idx == *previous_idx) { in VerifyClass()
263 *previous_idx = method_idx; in VerifyClass()
266 method_idx, dex_cache, class_loader, /* referrer= */ nullptr, type); in VerifyClass()
279 method_idx, in VerifyClass()
Dmethod_verifier.h121 uint32_t method_idx,
252 uint32_t method_idx,
274 uint32_t method_idx,
303 uint32_t method_idx,
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h425 ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, in FindMethodToCall() argument
444 ThrowNullPointerExceptionForMethodAccess(method_idx, type); in FindMethodToCall()
476 referrer->GetDexFile()->GetMethodId(method_idx).class_idx_; in FindMethodToCall()
562 inline ArtMethod* FindMethodFromCode(uint32_t method_idx, in FindMethodFromCode() argument
572 resolved_method = class_linker->ResolveMethod<resolve_mode>(self, method_idx, referrer, type); in FindMethodFromCode()
576 resolved_method = class_linker->ResolveMethod<resolve_mode>(self, method_idx, referrer, type); in FindMethodFromCode()
583 method_idx, resolved_method, this_object, referrer, self); in FindMethodFromCode()
589 ArtMethod* FindMethodFromCode<_type, _access_check>(uint32_t method_idx, \
647 inline ArtMethod* FindMethodFast(uint32_t method_idx, in FindMethodFast() argument
660 ArtMethod* resolved_method = linker->GetResolvedMethod<type, resolve_mode>(method_idx, referrer); in FindMethodFast()
[all …]
/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