Lines Matching refs:ArtMethod

172   ArtMethod* method = self->GetCurrentMethod(nullptr);  in HasInitWithString()
185 ArtMethod* exception_init_method = exception_class->FindConstructor( in HasInitWithString()
230 static void ChangeInterpreterBridgeToNterp(ArtMethod* method, ClassLinker* class_linker) in ChangeInterpreterBridgeToNterp()
259 for (ArtMethod& m : klass->GetMethods(pointer_size)) { in EnsureSkipAccessChecksMethods()
461 Thread* self, ArtMethod* method, const void* native_method) { in RegisterNative()
489 void ClassLinker::UnregisterNative(Thread* self, ArtMethod* method) { in UnregisterNative()
504 const void* ClassLinker::GetRegisteredNative(Thread* self, ArtMethod* method) { in GetRegisteredNative()
1220 ArtMethod* m;
1320 for (ArtMethod& m : klass->GetMethods(data.pointer_size)) { in InitFromBootImage()
1336 ArtMethod* m = data.m; in InitFromBootImage()
1337 LOG(ERROR) << "Found a broken ArtMethod: " << ArtMethod::PrettyMethod(m); in InitFromBootImage()
1712 for (ArtMethod& m : klass->GetDirectMethods(kRuntimePointerSize)) { in Update()
1723 for (ArtMethod& m : klass->GetVirtualMethods(kRuntimePointerSize)) { in Update()
1747 header.VisitPackedArtMethods([&](ArtMethod& method) in Update()
1905 for (ArtMethod& m : klass->GetMethods(pointer_size)) { in CheckObjects()
1958 void CheckArtMethod(ArtMethod* m, ObjPtr<mirror::Class> expected_class) in CheckArtMethod()
1984 auto* method = arr->GetElementPtrSize<ArtMethod*>(j, pointer_size_); in CheckArtMethodPointerArray()
2011 ArtMethod* method = pair.object; in CheckArtMethodDexCacheArray()
2033 header.VisitPackedArtMethods([&](ArtMethod& method) REQUIRES_SHARED(Locks::mutator_lock_) { in VerifyAppImage()
2191 header.VisitPackedArtMethods([&](ArtMethod& method) REQUIRES_SHARED(Locks::mutator_lock_) { in AddImageSpace()
2204 header.VisitPackedArtMethods([&](ArtMethod& method) REQUIRES_SHARED(Locks::mutator_lock_) { in AddImageSpace()
2210 header.VisitPackedArtMethods([&](ArtMethod& method) REQUIRES_SHARED(Locks::mutator_lock_) { in AddImageSpace()
3519 const void* ClassLinker::GetQuickOatCodeFor(ArtMethod* method) { in GetQuickOatCodeFor()
3549 bool ClassLinker::ShouldUseInterpreterEntrypoint(ArtMethod* method, const void* quick_code) { in ShouldUseInterpreterEntrypoint()
3622 [](const ArtMethod& m) { return m.IsCriticalNative(); })) { in FixupStaticTrampolines()
3625 ArtMethod* first_method = klass->GetDirectMethod(0u, pointer_size); in FixupStaticTrampolines()
3626 ArtMethod* last_method = klass->GetDirectMethod(num_direct_methods - 1u, pointer_size); in FixupStaticTrampolines()
3648 ArtMethod* method = klass->GetDirectMethod(method_index, pointer_size); in FixupStaticTrampolines()
3695 inline void EnsureThrowsInvocationError(ClassLinker* class_linker, ArtMethod* method) in EnsureThrowsInvocationError()
3705 ArtMethod* method, in LinkCode()
3805 LengthPrefixedArray<ArtMethod>* ClassLinker::AllocArtMethodArray(Thread* self, in AllocArtMethodArray()
3811 const size_t method_alignment = ArtMethod::Alignment(image_pointer_size_); in AllocArtMethodArray()
3812 const size_t method_size = ArtMethod::Size(image_pointer_size_); in AllocArtMethodArray()
3814 LengthPrefixedArray<ArtMethod>::ComputeSize(length, method_size, method_alignment); in AllocArtMethodArray()
3816 auto* ret = new (array_storage) LengthPrefixedArray<ArtMethod>(length); in AllocArtMethodArray()
3819 new(reinterpret_cast<void*>(&ret->At(i, method_size, method_alignment))) ArtMethod; in AllocArtMethodArray()
3911 ArtMethod* art_method = klass->GetDirectMethodUnchecked(class_def_method_index, in LoadClass()
3926 ArtMethod* art_method = klass->GetVirtualMethodUnchecked( in LoadClass()
3972 ArtMethod* dst) { in LoadMethod()
4546 for (ArtMethod& method : klass->GetCopiedMethods(image_pointer_size_)) { in InsertClass()
4563 LengthPrefixedArray<ArtMethod>* new_methods) { in UpdateClassMethods()
4990 for (ArtMethod& method : klass->GetMethods(image_pointer_size_)) { in ResolveClassExceptionHandlerTypes()
4995 void ClassLinker::ResolveMethodExceptionHandlerTypes(ArtMethod* method) { in ResolveMethodExceptionHandlerTypes()
5105 std::vector<ArtMethod*> proxied_methods; in CreateProxyClass()
5111 ArtMethod* m = mirror->GetArtMethod(); in CreateProxyClass()
5146 LengthPrefixedArray<ArtMethod>* proxy_class_methods = AllocArtMethodArray( in CreateProxyClass()
5254 void ClassLinker::CreateProxyConstructor(Handle<mirror::Class> klass, ArtMethod* out) { in CreateProxyConstructor()
5261 ArtMethod* proxy_constructor = in CreateProxyConstructor()
5282 void ClassLinker::CheckProxyConstructor(ArtMethod* constructor) const { in CheckProxyConstructor()
5290 void ClassLinker::CreateProxyMethod(Handle<mirror::Class> klass, ArtMethod* prototype, in CreateProxyMethod()
5291 ArtMethod* out) { in CreateProxyMethod()
5319 void ClassLinker::CheckProxyMethod(ArtMethod* method, ArtMethod* prototype) const { in CheckProxyMethod()
5338 ArtMethod* clinit = klass->FindClassInitializer(image_pointer_size_); in CanWeInitializeClass()
5631 ArtMethod* clinit = klass->FindClassInitializer(image_pointer_size_); in InitializeClass()
5781 ArtMethod* method, in ThrowSignatureCheckResolveReturnTypeException()
5782 ArtMethod* m) in ThrowSignatureCheckResolveReturnTypeException()
5796 ArtMethod::PrettyMethod(method).c_str(), in ThrowSignatureCheckResolveReturnTypeException()
5804 ArtMethod* method, in ThrowSignatureCheckResolveArgException()
5805 ArtMethod* m, in ThrowSignatureCheckResolveArgException()
5818 ArtMethod::PrettyMethod(method).c_str(), in ThrowSignatureCheckResolveArgException()
5826 ArtMethod* method, in ThrowSignatureMismatch()
5832 ArtMethod::PrettyMethod(method).c_str(), in ThrowSignatureMismatch()
5841 ArtMethod* method1, in HasSameSignatureWithDifferentClassLoaders()
5842 ArtMethod* method2) in HasSameSignatureWithDifferentClassLoaders()
5956 auto* m = klass->GetIfTable()->GetMethodArray(i)->GetElementPtrSize<ArtMethod*>( in ValidateSuperClassDescriptors()
6104 ArtMethod* imt_data[ImTable::kSize]; in LinkClass()
6375 ArtMethod** out_imt) { in LinkMethods()
6394 explicit MethodNameAndSignatureComparator(ArtMethod* method)
6408 bool HasSameNameAndSignature(ArtMethod* other) in HasSameNameAndSignature()
6451 ArtMethod* local_method = klass_->GetVirtualMethodDuringLinking( in Add()
6478 ArtMethod* virtual_method = in FindAndRemove()
6524 ArtMethod* m = klass->GetVirtualMethodDuringLinking(i, image_pointer_size_); in LinkVirtualMethods()
6626 ArtMethod* super_method = vtable->GetElementPtrSize<ArtMethod*>(j, image_pointer_size_); in LinkVirtualMethods()
6640 ArtMethod* virtual_method = klass->GetVirtualMethodDuringLinking( in LinkVirtualMethods()
6653 ArtMethod* default_method = nullptr; in LinkVirtualMethods()
6706 ArtMethod* local_method = klass->GetVirtualMethodDuringLinking(i, image_pointer_size_); in LinkVirtualMethods()
6709 local_method == vtable->GetElementPtrSize<ArtMethod*>(method_idx, image_pointer_size_)) { in LinkVirtualMethods()
6744 ArtMethod* virtual_method = klass->GetVirtualMethodDuringLinking(i, image_pointer_size_); in LinkVirtualMethods()
6792 for (ArtMethod& current_method : current_iface->GetDeclaredVirtualMethods(image_pointer_size)) { in ContainsOverridingMethodOf()
6812 ArtMethod* target_method, in FindDefaultMethodImplementation()
6814 /*out*/ArtMethod** out_default_method) const { in FindDefaultMethodImplementation()
6849 ArtMethod* current_method = &method_iter; in FindDefaultMethodImplementation()
6878 << ArtMethod::PrettyMethod(*out_default_method) << " in class " in FindDefaultMethodImplementation()
6922 ArtMethod* ClassLinker::AddMethodToConflictTable(ObjPtr<mirror::Class> klass, in AddMethodToConflictTable()
6923 ArtMethod* conflict_method, in AddMethodToConflictTable()
6924 ArtMethod* interface_method, in AddMethodToConflictTable()
6925 ArtMethod* method, in AddMethodToConflictTable()
6933 ArtMethod* new_conflict_method = new_entry in AddMethodToConflictTable()
6999 void ClassLinker::SetIMTRef(ArtMethod* unimplemented_method, in SetIMTRef()
7000 ArtMethod* imt_conflict_method, in SetIMTRef()
7001 ArtMethod* current_method, in SetIMTRef()
7003 /*out*/ArtMethod** imt_ref) { in SetIMTRef()
7033 ArtMethod* imt_data[ImTable::kSize]; in FillIMTAndConflictTables()
7035 ArtMethod* const unimplemented_method = runtime->GetImtUnimplementedMethod(); in FillIMTAndConflictTables()
7036 ArtMethod* const conflict_method = runtime->GetImtConflictMethod(); in FillIMTAndConflictTables()
7060 ArtMethod* method = imt_data[i]; in FillIMTAndConflictTables()
7061 ArtMethod* super_method = super_imt->Get(i, image_pointer_size_); in FillIMTAndConflictTables()
7106 ArtMethod* unimplemented_method, in FillIMTFromIfTable()
7107 ArtMethod* imt_conflict_method, in FillIMTFromIfTable()
7112 /*out*/ArtMethod** imt) { in FillIMTFromIfTable()
7132 ArtMethod* implementation_method = in FillIMTFromIfTable()
7133 method_array->GetElementPtrSize<ArtMethod*>(j, image_pointer_size_); in FillIMTFromIfTable()
7142 ArtMethod* interface_method = interface->GetVirtualMethod(j, image_pointer_size_); in FillIMTFromIfTable()
7168 ArtMethod* new_conflict_method = in FillIMTFromIfTable()
7190 ArtMethod* implementation_method = in FillIMTFromIfTable()
7191 method_array->GetElementPtrSize<ArtMethod*>(j, image_pointer_size_); in FillIMTFromIfTable()
7196 ArtMethod* interface_method = interface->GetVirtualMethod(j, image_pointer_size_); in FillIMTFromIfTable()
7420 static ArtMethod* FindSameNameAndSignature(MethodNameAndSignatureComparator& cmp ATTRIBUTE_UNUSED) { in FindSameNameAndSignature()
7425 static ArtMethod* FindSameNameAndSignature(MethodNameAndSignatureComparator& cmp, in FindSameNameAndSignature()
7426 const ScopedArenaVector<ArtMethod*>& list, in FindSameNameAndSignature()
7429 for (ArtMethod* method : list) { in FindSameNameAndSignature()
7451 ArtMethod* m = check_vtable->GetElementPtrSize<ArtMethod*>(i, pointer_size); in CheckClassOwnsVTableEntries()
7459 ArraySlice<ArtMethod> virtuals = klass->GetVirtualMethodsSliceUnchecked(pointer_size); in CheckClassOwnsVTableEntries()
7460 auto is_same_method = [m] (const ArtMethod& meth) { in CheckClassOwnsVTableEntries()
7491 ArtMethod* m1 = vtable->GetElementPtrSize<ArtMethod*, kPointerSize>(i); in CheckVTableHasNoDuplicates()
7492 ArtMethod* m2 = vtable->GetElementPtrSize<ArtMethod*, kPointerSize>(j); in CheckVTableHasNoDuplicates()
7510 ArtMethod* vtable_entry = vtable->GetElementPtrSize<ArtMethod*, kPointerSize>(start); in CheckVTableHasNoDuplicates()
7523 vtable->GetElementPtrSize<ArtMethod*, kPointerSize>(start)-> in CheckVTableHasNoDuplicates()
7542 ArtMethod* vtable_entry = vtable->GetElementPtrSizeUnchecked<ArtMethod*, kPointerSize>(i); in CheckVTableHasNoDuplicates()
7547 ArtMethod* m = vtable_entry->GetInterfaceMethodIfProxy(kPointerSize); in CheckVTableHasNoDuplicates()
7603 ArtMethod* vtable_entry = vtable->GetElementPtrSizeUnchecked<ArtMethod*, kPointerSize>(i); in CheckVTableHasNoDuplicates()
7610 ArtMethod* m = vtable_entry->GetInterfaceMethodIfProxy(kPointerSize); in CheckVTableHasNoDuplicates()
7653 ArtMethod* unimplemented_method, in FillImtFromSuperClass()
7654 ArtMethod* imt_conflict_method, in FillImtFromSuperClass()
7656 ArtMethod** imt) { in FillImtFromSuperClass()
7689 method_alignment_(ArtMethod::Alignment(class_linker->GetImagePointerSize())), in LinkInterfaceMethodsHelper()
7690 method_size_(ArtMethod::Size(class_linker->GetImagePointerSize())), in LinkInterfaceMethodsHelper()
7702 ArtMethod* FindMethod(ArtMethod* interface_method,
7704 ArtMethod* vtable_impl)
7707 ArtMethod* GetOrCreateMirandaMethod(ArtMethod* interface_method,
7727 void UpdateIMT(ArtMethod** out_imt);
7736 ArtMethod* m = pair.object; in CheckNoStaleMethodsInDexCache()
7742 [m] (ArtMethod& meth) { in CheckNoStaleMethodsInDexCache()
7750 void ClobberOldMethods(LengthPrefixedArray<ArtMethod>* old_methods, in ClobberOldMethods()
7751 LengthPrefixedArray<ArtMethod>* methods) { in ClobberOldMethods()
7762 const size_t old_size = LengthPrefixedArray<ArtMethod>::ComputeSize(old_methods->size(), in ClobberOldMethods()
7809 ScopedArenaVector<ArtMethod*> default_conflict_methods_;
7810 ScopedArenaVector<ArtMethod*> overriding_default_conflict_methods_;
7811 ScopedArenaVector<ArtMethod*> miranda_methods_;
7812 ScopedArenaVector<ArtMethod*> default_methods_;
7813 ScopedArenaVector<ArtMethod*> overriding_default_methods_;
7815 ScopedArenaUnorderedMap<ArtMethod*, ArtMethod*> move_table_;
7818 ArtMethod* ClassLinker::LinkInterfaceMethodsHelper::FindMethod( in FindMethod()
7819 ArtMethod* interface_method, in FindMethod()
7821 ArtMethod* vtable_impl) { in FindMethod()
7822 ArtMethod* current_method = nullptr; in FindMethod()
7830 ArtMethod* default_conflict_method = nullptr; in FindMethod()
7836 ArtMethod* preexisting_conflict = FindSameNameAndSignature( in FindMethod()
7847 default_conflict_method = reinterpret_cast<ArtMethod*>(allocator_.Alloc(method_size_)); in FindMethod()
7848 new(default_conflict_method) ArtMethod(interface_method, in FindMethod()
7876 ArtMethod* old = FindSameNameAndSignature(interface_name_comparator, in FindMethod()
7910 ArtMethod* ClassLinker::LinkInterfaceMethodsHelper::GetOrCreateMirandaMethod( in GetOrCreateMirandaMethod()
7911 ArtMethod* interface_method, in GetOrCreateMirandaMethod()
7914 ArtMethod* miranda_method = FindSameNameAndSignature(interface_name_comparator, in GetOrCreateMirandaMethod()
7918 miranda_method = reinterpret_cast<ArtMethod*>(allocator_.Alloc(method_size_)); in GetOrCreateMirandaMethod()
7921 new(miranda_method) ArtMethod(interface_method, class_linker_->GetImagePointerSize()); in GetOrCreateMirandaMethod()
7935 LengthPrefixedArray<ArtMethod>* old_methods = klass_->GetMethodsPtr(); in ReallocMethods()
7942 const size_t old_size = LengthPrefixedArray<ArtMethod>::ComputeSize(old_method_count, in ReallocMethods()
7945 const size_t new_size = LengthPrefixedArray<ArtMethod>::ComputeSize(new_method_count, in ReallocMethods()
7949 auto* methods = reinterpret_cast<LengthPrefixedArray<ArtMethod>*>( in ReallocMethods()
7957 StrideIterator<ArtMethod> out = methods->begin(method_size_, method_alignment_); in ReallocMethods()
7967 StrideIterator<ArtMethod> out(methods->begin(method_size_, method_alignment_) + old_method_count); in ReallocMethods()
7971 ArtMethod* mir_method = miranda_methods_[i]; in ReallocMethods()
7972 ArtMethod& new_method = *out; in ReallocMethods()
7991 for (ScopedArenaVector<ArtMethod*>* methods_vec : {&default_methods_, in ReallocMethods()
7994 ArtMethod* def_method = (*methods_vec)[i]; in ReallocMethods()
7995 ArtMethod& new_method = *out; in ReallocMethods()
8014 for (ScopedArenaVector<ArtMethod*>* methods_vec : {&default_conflict_methods_, in ReallocMethods()
8017 ArtMethod* conf_method = (*methods_vec)[i]; in ReallocMethods()
8018 ArtMethod& new_method = *out; in ReallocMethods()
8070 for (const ScopedArenaVector<ArtMethod*>& methods_vec : {default_methods_, in UpdateVtable()
8074 for (ArtMethod* new_vtable_method : methods_vec) { in UpdateVtable()
8088 ArtMethod* translated_method = vtable->GetElementPtrSize<ArtMethod*>(i, pointer_size); in UpdateVtable()
8098 ArtMethod* new_conflict_method = FindSameNameAndSignature( in UpdateVtable()
8106 ArtMethod* miranda_method = FindSameNameAndSignature(old_method_comparator, in UpdateVtable()
8149 ArtMethod* m = method_array->GetElementPtrSize<ArtMethod*>(j, pointer_size); in UpdateIfTable()
8161 void ClassLinker::LinkInterfaceMethodsHelper::UpdateIMT(ArtMethod** out_imt) { in UpdateIMT()
8177 ArtMethod** out_imt) { in LinkInterfaceMethods()
8190 ArtMethod* const unimplemented_method = runtime->GetImtUnimplementedMethod(); in LinkInterfaceMethods()
8191 ArtMethod* const imt_conflict_method = runtime->GetImtConflictMethod(); in LinkInterfaceMethods()
8232 ArraySlice<ArtMethod> input_virtual_methods; in LinkInterfaceMethods()
8264 ArtMethod** imt_ptr = &out_imt[imt_index]; in LinkInterfaceMethods()
8276 ArtMethod* vtable_impl = nullptr; in LinkInterfaceMethods()
8278 ArtMethod* vtable_method = using_virtuals ? in LinkInterfaceMethods()
8280 input_vtable_array->GetElementPtrSize<ArtMethod*>(k, image_pointer_size_); in LinkInterfaceMethods()
8281 ArtMethod* vtable_method_for_name_comparison = in LinkInterfaceMethods()
8336 ArtMethod* supers_method = in LinkInterfaceMethods()
8337 method_array->GetElementPtrSize<ArtMethod*>(j, image_pointer_size_); in LinkInterfaceMethods()
8352 << "vtable_impl was " << ArtMethod::PrettyMethod(vtable_impl) in LinkInterfaceMethods()
8360 ArtMethod* current_method = helper.FindMethod(interface_method, in LinkInterfaceMethods()
8387 LengthPrefixedArray<ArtMethod>* old_methods = kIsDebugBuild ? klass->GetMethodsPtr() : nullptr; in LinkInterfaceMethods()
8389 LengthPrefixedArray<ArtMethod>* methods = kIsDebugBuild ? klass->GetMethodsPtr() : nullptr; in LinkInterfaceMethods()
8753 ArtMethod* referrer);
8786 ArtMethod* ClassLinker::FindResolvedMethod(ObjPtr<mirror::Class> klass, in FindResolvedMethod()
8793 ArtMethod* resolved = nullptr; in FindResolvedMethod()
8828 static bool CheckNoSuchMethod(ArtMethod* method, in CheckNoSuchMethod()
8838 ArtMethod* ClassLinker::FindIncompatibleMethod(ObjPtr<mirror::Class> klass, in FindIncompatibleMethod()
8843 ArtMethod* method = klass->FindClassMethod(dex_cache, method_idx, image_pointer_size_); in FindIncompatibleMethod()
8850 ArtMethod* method = in FindIncompatibleMethod()
8859 ArtMethod* ClassLinker::ResolveMethod(uint32_t method_idx, in ResolveMethod()
8862 ArtMethod* referrer, in ResolveMethod()
8869 ArtMethod* resolved = dex_cache->GetResolvedMethod(method_idx, pointer_size); in ResolveMethod()
8956 ArtMethod* ClassLinker::ResolveMethodWithoutInvokeType(uint32_t method_idx, in ResolveMethodWithoutInvokeType()
8959 ArtMethod* resolved = dex_cache->GetResolvedMethod(method_idx, image_pointer_size_); in ResolveMethodWithoutInvokeType()
9186 ArtMethod* referrer) { in ResolveMethodType()
9196 ArtMethod* referrer) { in ResolveMethodHandleForField()
9324 ArtMethod* referrer) { in ResolveMethodHandleForMethod()
9329 ArtMethod* target_method = nullptr; in ResolveMethodHandleForMethod()
9499 ArtMethod* referrer) in ResolveMethodHandle()
9547 void ClassLinker::SetEntryPointsToInterpreter(ArtMethod* method) const { in SetEntryPointsToInterpreter()
9555 void ClassLinker::SetEntryPointsForObsoleteMethod(ArtMethod* method) const { in SetEntryPointsForObsoleteMethod()
9920 FindVirtualMethodHolderVisitor(const ArtMethod* method, PointerSize pointer_size) in FindVirtualMethodHolderVisitor()
9933 const ArtMethod* const method_;
9937 ObjPtr<mirror::Class> ClassLinker::GetHoldingClassOfCopiedMethod(ArtMethod* method) { in GetHoldingClassOfCopiedMethod()
9959 template ArtMethod* ClassLinker::ResolveMethod<ClassLinker::ResolveMode::kCheckICCEAndIAE>(
9963 ArtMethod* referrer,
9965 template ArtMethod* ClassLinker::ResolveMethod<ClassLinker::ResolveMode::kNoChecks>(
9969 ArtMethod* referrer,