Home
last modified time | relevance | path

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

123

/art/compiler/
Dcompiler.cc40 uint32_t method_idx, in IsPathologicalCase() argument
50 << " in " << PrettyMethod(method_idx, dex_file); in IsPathologicalCase()
55 << code_item.registers_size_ << " in " << PrettyMethod(method_idx, dex_file); in IsPathologicalCase()
Dcompiler.h47 virtual bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const = 0;
53 uint32_t method_idx,
59 uint32_t method_idx,
95 uint32_t method_idx,
/art/runtime/
Ddex_instruction.cc246 uint32_t method_idx = VRegB_21c(); in DumpString() local
247 …<< opcode << " v" << static_cast<int>(VRegA_21c()) << ", " << PrettyMethod(method_idx, *file, true) in DumpString()
248 << " // method@" << method_idx; in DumpString()
405 uint32_t method_idx = VRegB_35c(); in DumpString() local
412 os << "}, " << PrettyMethod(method_idx, *file) << " // method@" << method_idx; in DumpString()
419 uint32_t method_idx = VRegB_35c(); in DumpString() local
426 os << "}, // vtable@" << method_idx; in DumpString()
445 uint32_t method_idx = VRegB_3rc(); in DumpString() local
447 << PrettyMethod(method_idx, *file) << " // method@" << method_idx; in DumpString()
453 uint32_t method_idx = VRegB_3rc(); in DumpString() local
[all …]
Ddex_method_iterator_test.cc41 uint32_t method_idx = it.GetMemberIndex(); in TEST_F() local
43 LOG(INFO) << invoke_type << " " << PrettyMethod(method_idx, dex_file); in TEST_F()
Dclass_linker-inl.h111 inline ArtMethod* ClassLinker::GetResolvedMethod(uint32_t method_idx, ArtMethod* referrer) { in GetResolvedMethod() argument
112 ArtMethod* resolved_method = referrer->GetDexCacheResolvedMethod(method_idx, image_pointer_size_); in GetResolvedMethod()
120 uint32_t method_idx, in ResolveReferencedClassOfMethod() argument
132 const DexFile::MethodId& method = dex_file->GetMethodId(method_idx); in ResolveReferencedClassOfMethod()
142 uint32_t method_idx, in ResolveMethod() argument
145 ArtMethod* resolved_method = GetResolvedMethod(method_idx, referrer); in ResolveMethod()
153 method_idx, in ResolveMethod()
Ddex_file_verifier_test.cc292 /*out*/ uint32_t* method_idx = nullptr) { in FindMethodData() argument
318 if (method_idx != nullptr) { in FindMethodData()
319 *method_idx = method_index; in FindMethodData()
699 uint32_t method_idx; in TEST_F() local
700 FindMethodData(dex_file, "foo", &method_idx); in TEST_F()
701 auto* method_id = const_cast<DexFile::MethodId*>(&dex_file->GetMethodId(method_idx)); in TEST_F()
1497 uint32_t method_idx; in TEST_F() local
1498 const uint8_t* data = FindMethodData(dex_file, "foo", &method_idx); in TEST_F()
1501 CHECK_LT(method_idx + 1u, dex_file->NumMethodIds()); in TEST_F()
1502 CHECK_EQ(dex_file->GetMethodId(method_idx).name_idx_, in TEST_F()
[all …]
Dcommon_throws.cc89 void ThrowAbstractMethodError(uint32_t method_idx, const DexFile& dex_file) { in ThrowAbstractMethodError() argument
92 PrettyMethod(method_idx, in ThrowAbstractMethodError()
359 void ThrowNoSuchMethodError(uint32_t method_idx) { in ThrowNoSuchMethodError() argument
364 msg << "No method '" << PrettyMethod(method_idx, dex_file, true) << "'"; in ThrowNoSuchMethodError()
378 static void ThrowNullPointerExceptionForMethodAccessImpl(uint32_t method_idx, in ThrowNullPointerExceptionForMethodAccessImpl() argument
384 << PrettyMethod(method_idx, dex_file, true) << "' on a null object reference"; in ThrowNullPointerExceptionForMethodAccessImpl()
388 void ThrowNullPointerExceptionForMethodAccess(uint32_t method_idx, in ThrowNullPointerExceptionForMethodAccess() argument
393 ThrowNullPointerExceptionForMethodAccessImpl(method_idx, dex_file, type); in ThrowNullPointerExceptionForMethodAccess()
Dcommon_throws.h39 void ThrowAbstractMethodError(uint32_t method_idx, const DexFile& dex_file)
181 void ThrowNoSuchMethodError(uint32_t method_idx)
190 void ThrowNullPointerExceptionForMethodAccess(uint32_t method_idx,
/art/compiler/optimizing/
Doptimizing_compiler.cc262 bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const OVERRIDE;
268 uint32_t method_idx,
274 uint32_t method_idx, in JniCompile() argument
276 return ArtQuickJniCompileMethod(GetCompilerDriver(), access_flags, method_idx, dex_file); in JniCompile()
320 uint32_t method_idx,
366 bool OptimizingCompiler::CanCompileMethod(uint32_t method_idx ATTRIBUTE_UNUSED, in CanCompileMethod()
614 uint32_t method_idx, in TryCompile() argument
642 if (Compiler::IsPathologicalCase(*code_item, method_idx, dex_file)) { in TryCompile()
663 method_idx, in TryCompile()
676 method_idx, in TryCompile()
[all …]
Dinstruction_builder.cc668 ArtMethod* HInstructionBuilder::ResolveMethod(uint16_t method_idx, InvokeType invoke_type) { in ResolveMethod() argument
679 method_idx, dex_compilation_unit_->GetDexCache(), class_loader))); in ResolveMethod()
689 method_idx, in ResolveMethod()
710 method_idx)) { in ResolveMethod()
769 uint32_t method_idx, in BuildInvoke() argument
775 const char* descriptor = dex_file_->GetMethodShorty(method_idx); in BuildInvoke()
785 MethodReference target_method(dex_file_, method_idx); in BuildInvoke()
789 bool is_string_init = compiler_driver_->IsStringInit(method_idx, in BuildInvoke()
805 method_idx, in BuildInvoke()
819 ArtMethod* resolved_method = ResolveMethod(method_idx, invoke_type); in BuildInvoke()
[all …]
/art/runtime/mirror/
Ddex_cache-inl.h79 inline ArtMethod* DexCache::GetResolvedMethod(uint32_t method_idx, size_t ptr_size) { in GetResolvedMethod() argument
81 DCHECK_LT(method_idx, NumResolvedMethods()); // NOTE: Unchecked, i.e. not throwing AIOOB. in GetResolvedMethod()
82 ArtMethod* method = GetElementPtrSize<ArtMethod*>(GetResolvedMethods(), method_idx, ptr_size); in GetResolvedMethod()
91 inline void DexCache::SetResolvedMethod(uint32_t method_idx, ArtMethod* method, size_t ptr_size) { in SetResolvedMethod() argument
93 DCHECK_LT(method_idx, NumResolvedMethods()); // NOTE: Unchecked, i.e. not throwing AIOOB. in SetResolvedMethod()
94 SetElementPtrSize(GetResolvedMethods(), method_idx, method, ptr_size); in SetResolvedMethod()
/art/compiler/driver/
Ddex_compilation_unit.cc30 uint32_t method_idx, in DexCompilationUnit() argument
39 dex_method_idx_(method_idx), in DexCompilationUnit()
Dcompiler_driver.cc566 uint32_t method_idx, in CompileMethod() argument
576 MethodReference method_ref(&dex_file, method_idx); in CompileMethod()
582 if (driver->GetCurrentDexToDexMethods()->IsBitSet(method_idx)) { in CompileMethod()
593 method_idx, in CompileMethod()
606 compiled_method = driver->GetCompiler()->JniCompile(access_flags, method_idx, dex_file); in CompileMethod()
631 class_def_idx, method_idx, class_loader, in CompileMethod()
644 LOG(WARNING) << "Compilation of " << PrettyMethod(method_idx, dex_file) in CompileMethod()
666 LOG(FATAL) << "Unexpected exception compiling: " << PrettyMethod(method_idx, dex_file) << "\n" in CompileMethod()
676 uint32_t method_idx = method->GetDexMethodIndex(); in CompileOne() local
717 method_idx, in CompileOne()
[all …]
Dcompiler_driver-inl.h211 ArtMethod* resolved_method, uint16_t method_idx, uint32_t* storage_index) { in IsClassOfStaticMethodAvailableToReferrer() argument
213 dex_cache, referrer_class, resolved_method, method_idx, storage_index); in IsClassOfStaticMethodAvailableToReferrer()
259 uint32_t method_idx, InvokeType invoke_type, bool check_incompatible_class_change) { in ResolveMethod() argument
264 *dex_cache->GetDexFile(), method_idx, dex_cache, class_loader, nullptr, invoke_type) in ResolveMethod()
266 *dex_cache->GetDexFile(), method_idx, dex_cache, class_loader, nullptr, invoke_type); in ResolveMethod()
/art/compiler/dex/
Ddex_to_dex_compiler.cc279 uint32_t method_idx = is_range ? inst->VRegB_3rc() : inst->VRegB_35c(); in CompileInvokeVirtual() local
280 MethodReference target_method(&GetDexFile(), method_idx); in CompileInvokeVirtual()
296 << "(" << PrettyMethod(method_idx, GetDexFile(), true) << ")" in CompileInvokeVirtual()
298 << " by replacing method index " << method_idx in CompileInvokeVirtual()
310 quickened_info_.push_back(QuickenedInfo(dex_pc, method_idx)); in CompileInvokeVirtual()
321 uint32_t method_idx, in ArtCompileDEX() argument
336 method_idx, in ArtCompileDEX()
338 driver->GetVerifiedMethod(&dex_file, method_idx), in ArtCompileDEX()
Ddex_to_dex_compiler.h44 uint32_t method_idx,
/art/runtime/native/
Ddalvik_system_VMRuntime.cc357 static void PreloadDexCachesResolveMethod(Handle<mirror::DexCache> dex_cache, uint32_t method_idx, in PreloadDexCachesResolveMethod() argument
360 ArtMethod* method = dex_cache->GetResolvedMethod(method_idx, sizeof(void*)); in PreloadDexCachesResolveMethod()
365 const DexFile::MethodId& method_id = dex_file->GetMethodId(method_idx); in PreloadDexCachesResolveMethod()
373 method = klass->FindDirectMethod(dex_cache.Get(), method_idx, sizeof(void*)); in PreloadDexCachesResolveMethod()
376 method = klass->FindInterfaceMethod(dex_cache.Get(), method_idx, sizeof(void*)); in PreloadDexCachesResolveMethod()
380 method = klass->FindVirtualMethod(dex_cache.Get(), method_idx, sizeof(void*)); in PreloadDexCachesResolveMethod()
390 dex_cache->SetResolvedMethod(method_idx, method, sizeof(void*)); in PreloadDexCachesResolveMethod()
540 uint32_t method_idx = it.GetMemberIndex(); in VMRuntime_preloadDexCaches() local
542 PreloadDexCachesResolveMethod(dex_cache, method_idx, invoke_type); in VMRuntime_preloadDexCaches()
545 uint32_t method_idx = it.GetMemberIndex(); in VMRuntime_preloadDexCaches() local
[all …]
/art/compiler/jni/quick/
Djni_compiler.h28 uint32_t method_idx, const DexFile& dex_file);
/art/runtime/entrypoints/quick/
Dquick_throw_entrypoints.cc86 extern "C" NO_RETURN void artThrowNoSuchMethodFromCode(int32_t method_idx, Thread* self) in artThrowNoSuchMethodFromCode() argument
89 ThrowNoSuchMethodError(method_idx); in artThrowNoSuchMethodFromCode()
/art/runtime/utils/
Ddex_cache_arrays_layout-inl.h72 inline size_t DexCacheArraysLayout::MethodOffset(uint32_t method_idx) const { in MethodOffset() argument
73 return methods_offset_ + ElementOffset(pointer_size_, method_idx); in MethodOffset()
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h437 inline ArtMethod* FindMethodFromCode(uint32_t method_idx, mirror::Object** this_object, in FindMethodFromCode() argument
440 ArtMethod* resolved_method = class_linker->GetResolvedMethod(method_idx, referrer); in FindMethodFromCode()
449 resolved_method = class_linker->ResolveMethod<resolve_mode>(self, method_idx, referrer, type); in FindMethodFromCode()
465 ThrowNullPointerExceptionForMethodAccess(method_idx, type); in FindMethodFromCode()
473 method_idx); in FindMethodFromCode()
510 uint16_t method_type_idx = referring_class->GetDexFile().GetMethodId(method_idx).class_idx_; in FindMethodFromCode()
595 ArtMethod* FindMethodFromCode<_type, _access_check>(uint32_t method_idx, \
664 inline ArtMethod* FindMethodFast(uint32_t method_idx, mirror::Object* this_object, in FindMethodFast() argument
671 referring_class->GetDexCache()->GetResolvedMethod(method_idx, sizeof(void*)); in FindMethodFast()
695 uint16_t method_type_idx = referring_class->GetDexFile().GetMethodId(method_idx).class_idx_; in FindMethodFast()
/art/compiler/linker/arm64/
Drelative_patcher_arm64_test.cc84 uint32_t method_idx = 2u; in Create2MethodsWithGap() local
91 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code), in Create2MethodsWithGap()
93 method_idx += 1u; in Create2MethodsWithGap()
97 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code), in Create2MethodsWithGap()
99 method_idx += 1u; in Create2MethodsWithGap()
102 AddCompiledMethod(MethodRef(method_idx), last_method_code, last_method_patches); in Create2MethodsWithGap()
107 auto last_result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in Create2MethodsWithGap()
115 return method_idx; in Create2MethodsWithGap()
118 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
119 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
/art/compiler/dex/quick/
Ddex_file_method_inliner.cc822 uint32_t method_idx = FindMethodIndex(dex_file, &cache, def.method_def); in FindIntrinsics() local
823 if (method_idx != kIndexNotFound) { in FindIntrinsics()
824 DCHECK(inline_methods_.find(method_idx) == inline_methods_.end()); in FindIntrinsics()
825 inline_methods_.Put(method_idx, def.intrinsic); in FindIntrinsics()
831 bool DexFileMethodInliner::AddInlineMethod(int32_t method_idx, const InlineMethod& method) { in AddInlineMethod() argument
833 if (LIKELY(inline_methods_.find(method_idx) == inline_methods_.end())) { in AddInlineMethod()
834 inline_methods_.Put(method_idx, method); in AddInlineMethod()
837 if (PrettyMethod(method_idx, *dex_file_) == "int java.lang.String.length()") { in AddInlineMethod()
840 LOG(WARNING) << "Inliner: " << PrettyMethod(method_idx, *dex_file_) << " already inline"; in AddInlineMethod()
/art/compiler/linker/x86_64/
Drelative_patcher_x86_64_test.cc35 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
36 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()
/art/compiler/linker/x86/
Drelative_patcher_x86_test.cc31 uint32_t GetMethodOffset(uint32_t method_idx) { in GetMethodOffset() argument
32 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset()

123