/art/libdexfile/dex/ |
D | dex_instruction_test.cc | 32 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()
|
D | dex_instruction.cc | 396 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 …]
|
D | dex_file.cc | 227 uint32_t DexFile::FindCodeItemOffset(const ClassDef& class_def, uint32_t method_idx) const { in FindCodeItemOffset() 231 if (method.GetIndex() == method_idx) { in FindCodeItemOffset() 235 LOG(FATAL) << "Unable to find method " << method_idx; in FindCodeItemOffset() 521 std::string DexFile::PrettyMethod(uint32_t method_idx, bool with_signature) const { in PrettyMethod() argument 522 if (method_idx >= NumMethodIds()) { in PrettyMethod() 523 return StringPrintf("<<invalid-method-idx-%d>>", method_idx); in PrettyMethod() 525 const MethodId& method_id = GetMethodId(method_idx); in PrettyMethod()
|
/art/compiler/ |
D | compiler.cc | 49 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()
|
D | compiler.h | 58 virtual bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const = 0; 64 uint32_t method_idx, 70 uint32_t method_idx, 96 uint32_t method_idx,
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 164 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() 679 uint32_t method_idx = 0u; in TestBakerFieldWide() local 691 ++method_idx; in TestBakerFieldWide() [all …]
|
/art/runtime/ |
D | class_linker-inl.h | 270 uint32_t method_idx, in CheckInvokeClassMismatch() argument 275 [this, dex_cache, method_idx, class_loader]() REQUIRES_SHARED(Locks::mutator_lock_) { in CheckInvokeClassMismatch() 276 const dex::MethodId& method_id = dex_cache->GetDexFile()->GetMethodId(method_idx); in CheckInvokeClassMismatch() 284 inline ArtMethod* ClassLinker::LookupResolvedMethod(uint32_t method_idx, in LookupResolvedMethod() argument 288 ArtMethod* resolved = dex_cache->GetResolvedMethod(method_idx, pointer_size); in LookupResolvedMethod() 291 const dex::MethodId& method_id = dex_file.GetMethodId(method_idx); in LookupResolvedMethod() 294 resolved = FindResolvedMethod(klass, dex_cache, class_loader, method_idx); in LookupResolvedMethod() 301 inline ArtMethod* ClassLinker::GetResolvedMethod(uint32_t method_idx, ArtMethod* referrer) { in GetResolvedMethod() argument 310 method_idx, image_pointer_size_); in GetResolvedMethod() 320 if (CheckInvokeClassMismatch</* kThrow= */ false>(dex_cache, type, method_idx, class_loader)) { in GetResolvedMethod() [all …]
|
D | common_throws.cc | 105 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() 613 uint16_t method_idx = method->GetIndexFromQuickening(throw_dex_pc); in ThrowNullPointerExceptionFromDexPC() local 614 if (method_idx != DexFile::kDexNoIndex16) { in ThrowNullPointerExceptionFromDexPC() 616 ThrowNullPointerExceptionForMethodAccess(method_idx, kVirtual); in ThrowNullPointerExceptionFromDexPC()
|
/art/tools/dexanalyze/ |
D | dexanalyze_experiments.cc | 380 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/ |
D | relative_patcher_arm64_test.cc | 131 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() 1019 uint32_t method_idx = 0u; in TestBakerField() local 1030 ++method_idx; in TestBakerField() [all …]
|
/art/runtime/verifier/ |
D | class_verifier.cc | 123 const uint32_t method_idx = method.GetIndex(); in VerifyClass() local 124 if (method_idx == *previous_idx) { in VerifyClass() 129 *previous_idx = method_idx; in VerifyClass() 132 method_idx, dex_cache, class_loader, /* referrer= */ nullptr, type); in VerifyClass() 143 method_idx, in VerifyClass()
|
D | method_verifier.h | 111 uint32_t method_idx, 219 uint32_t method_idx, 237 uint32_t method_idx, 264 uint32_t method_idx,
|
/art/compiler/driver/ |
D | compiler_options.cc | 158 uint32_t method_idx) const { in GetVerifiedMethod() 159 MethodReference ref(dex_file, method_idx); in GetVerifiedMethod() 163 bool CompilerOptions::IsMethodVerifiedWithoutFailures(uint32_t method_idx, in IsMethodVerifiedWithoutFailures() argument 166 const VerifiedMethod* verified_method = GetVerifiedMethod(&dex_file, method_idx); in IsMethodVerifiedWithoutFailures()
|
D | dex_compilation_unit.cc | 35 uint32_t method_idx, in DexCompilationUnit() argument 45 dex_method_idx_(method_idx), in DexCompilationUnit()
|
/art/compiler/optimizing/ |
D | optimizing_compiler.cc | 274 bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const override; 280 uint32_t method_idx, 286 uint32_t method_idx, 444 bool OptimizingCompiler::CanCompileMethod(uint32_t method_idx ATTRIBUTE_UNUSED, in CanCompileMethod() 790 uint32_t method_idx = dex_compilation_unit.GetDexMethodIndex(); in TryCompile() local 804 if (Compiler::IsPathologicalCase(*code_item, method_idx, dex_file)) { in TryCompile() 819 CodeItemDebugInfoAccessor code_item_accessor(dex_file, code_item, method_idx); in TryCompile() 837 && !annotations::MethodContainsRSensitiveAccess(dex_file, *containing_class, method_idx); in TryCompile() 847 method_idx, in TryCompile() 953 uint32_t method_idx = dex_compilation_unit.GetDexMethodIndex(); in TryCompileIntrinsic() local [all …]
|
/art/dex2oat/dex/ |
D | dex_to_dex_compiler.cc | 466 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/ |
D | dex_cache-inl.h | 271 inline uint32_t DexCache::MethodSlotIndex(uint32_t method_idx) { in MethodSlotIndex() argument 272 DCHECK_LT(method_idx, GetDexFile()->NumMethodIds()); in MethodSlotIndex() 273 const uint32_t slot_idx = method_idx % kDexCacheMethodCacheSize; in MethodSlotIndex() 278 inline ArtMethod* DexCache::GetResolvedMethod(uint32_t method_idx, PointerSize ptr_size) { in GetResolvedMethod() argument 280 auto pair = GetNativePairPtrSize(GetResolvedMethods(), MethodSlotIndex(method_idx), ptr_size); in GetResolvedMethod() 281 return pair.GetObjectForIndex(method_idx); in GetResolvedMethod() 284 inline void DexCache::SetResolvedMethod(uint32_t method_idx, in SetResolvedMethod() argument 289 MethodDexCachePair pair(method, method_idx); in SetResolvedMethod() 290 SetNativePairPtrSize(GetResolvedMethods(), MethodSlotIndex(method_idx), pair, ptr_size); in SetResolvedMethod() 293 inline void DexCache::ClearResolvedMethod(uint32_t method_idx, PointerSize ptr_size) { in ClearResolvedMethod() argument [all …]
|
/art/compiler/jni/quick/ |
D | jni_compiler.cc | 119 uint32_t method_idx, in ArtJniCompileMethodInternal() argument 125 const char* shorty = dex_file.GetMethodShorty(dex_file.GetMethodId(method_idx)); in ArtJniCompileMethodInternal() 137 << dex_file.PrettyMethod(method_idx, /* with signature */ true) in ArtJniCompileMethodInternal() 142 << dex_file.PrettyMethod(method_idx, /* with signature */ true); in ArtJniCompileMethodInternal() 147 << dex_file.PrettyMethod(method_idx, /* with signature */ true); in ArtJniCompileMethodInternal() 154 << dex_file.PrettyMethod(method_idx, /* with_signature= */ true); in ArtJniCompileMethodInternal() 165 << dex_file.PrettyMethod(method_idx, /* with_signature= */ true); in ArtJniCompileMethodInternal() 169 << dex_file.PrettyMethod(method_idx, /* with_signature= */ true); in ArtJniCompileMethodInternal() 173 << dex_file.PrettyMethod(method_idx, /* with_signature= */ true); in ArtJniCompileMethodInternal() 769 uint32_t method_idx, in ArtQuickJniCompileMethod() argument [all …]
|
D | jni_compiler.h | 67 uint32_t method_idx,
|
/art/dex2oat/linker/mips64/ |
D | relative_patcher_mips64_test.cc | 37 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument 38 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
|
/art/runtime/entrypoints/ |
D | entrypoint_utils-inl.h | 431 ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, in FindMethodToCall() argument 450 ThrowNullPointerExceptionForMethodAccess(method_idx, type); in FindMethodToCall() 482 referrer->GetDexFile()->GetMethodId(method_idx).class_idx_; in FindMethodToCall() 568 inline ArtMethod* FindMethodFromCode(uint32_t method_idx, in FindMethodFromCode() argument 578 resolved_method = class_linker->ResolveMethod<resolve_mode>(self, method_idx, referrer, type); in FindMethodFromCode() 582 resolved_method = class_linker->ResolveMethod<resolve_mode>(self, method_idx, referrer, type); in FindMethodFromCode() 589 method_idx, resolved_method, this_object, referrer, self); in FindMethodFromCode() 595 ArtMethod* FindMethodFromCode<_type, _access_check>(uint32_t method_idx, \ 653 inline ArtMethod* FindMethodFast(uint32_t method_idx, in FindMethodFast() argument 666 ArtMethod* resolved_method = linker->GetResolvedMethod<type, resolve_mode>(method_idx, referrer); in FindMethodFast() [all …]
|
/art/dex2oat/linker/mips/ |
D | relative_patcher_mips_test.cc | 36 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument 37 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
|
D | relative_patcher_mips32r6_test.cc | 35 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument 36 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
|
/art/tools/veridex/ |
D | hidden_api_finder.h | 48 void CheckMethod(uint32_t method_idx, VeridexResolver* resolver, MethodReference ref);
|
/art/runtime/utils/ |
D | dex_cache_arrays_layout-inl.h | 95 inline size_t DexCacheArraysLayout::MethodOffset(uint32_t method_idx) const { in MethodOffset() argument 96 return methods_offset_ + ElementOffset(pointer_size_, method_idx); in MethodOffset()
|