Lines Matching refs:Method
28 #include "method.h"
340 ArtMethod* method = FindDeclaredVirtualMethod(name, signature, pointer_size);
341 if (method != nullptr) {
342 return method;
348 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(name, signature, pointer_size);
349 if (method != nullptr) {
350 return method;
359 ArtMethod* method = FindDeclaredVirtualMethod(name, signature, pointer_size);
360 if (method != nullptr) {
361 return method;
367 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(name, signature, pointer_size);
368 if (method != nullptr) {
369 return method;
378 ArtMethod* method = FindDeclaredVirtualMethod(dex_cache, dex_method_idx, pointer_size);
379 if (method != nullptr) {
380 return method;
386 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(
388 if (method != nullptr) {
389 return method;
397 for (auto& method : GetDirectMethods(pointer_size)) {
398 if (name == method.GetName() && method.GetSignature() == signature) {
399 return &method;
407 for (auto& method : GetDirectMethods(pointer_size)) {
408 if (name == method.GetName() && signature == method.GetSignature()) {
409 return &method;
418 for (auto& method : GetDirectMethods(pointer_size)) {
419 if (method.GetDexMethodIndex() == dex_method_idx) {
420 return &method;
430 ArtMethod* method = klass->FindDeclaredDirectMethod(name, signature, pointer_size);
431 if (method != nullptr) {
432 return method;
441 ArtMethod* method = klass->FindDeclaredDirectMethod(name, signature, pointer_size);
442 if (method != nullptr) {
443 return method;
452 ArtMethod* method = klass->FindDeclaredDirectMethod(dex_cache, dex_method_idx, pointer_size);
453 if (method != nullptr) {
454 return method;
461 for (auto& method : GetDirectMethods(pointer_size)) {
462 ArtMethod* const np_method = method.GetInterfaceMethodIfProxy(pointer_size);
464 return &method;
476 for (auto& method : GetVirtualMethods(pointer_size)) {
477 ArtMethod* const np_method = method.GetInterfaceMethodIfProxy(pointer_size);
479 return &method;
487 for (auto& method : GetVirtualMethods(pointer_size)) {
488 ArtMethod* const np_method = method.GetInterfaceMethodIfProxy(pointer_size);
490 return &method;
499 for (auto& method : GetDeclaredVirtualMethods(pointer_size)) {
500 if (method.GetDexMethodIndex() == dex_method_idx) {
501 return &method;
509 for (auto& method : GetVirtualMethods(pointer_size)) {
510 ArtMethod* const np_method = method.GetInterfaceMethodIfProxy(pointer_size);
512 return &method;
521 ArtMethod* method = klass->FindDeclaredVirtualMethod(name, signature, pointer_size);
522 if (method != nullptr) {
523 return method;
532 ArtMethod* method = klass->FindDeclaredVirtualMethod(name, signature, pointer_size);
533 if (method != nullptr) {
534 return method;
543 ArtMethod* method = klass->FindDeclaredVirtualMethod(dex_cache, dex_method_idx, pointer_size);
544 if (method != nullptr) {
545 return method;
551 ArtMethod* Class::FindVirtualMethodForInterfaceSuper(ArtMethod* method, size_t pointer_size) {
552 DCHECK(method->GetDeclaringClass()->IsInterface());
556 // don't do any indirect method checks here.
558 if (method->HasSameNameAndSignature(&iface_method)) {
572 // Find the method. We don't need to check for conflicts because they would have been in the
579 // Iterate through every declared method on this interface. Each direct method's name/signature
583 if (current_method->HasSameNameAndSignature(method)) {
585 // Handle JLS soft errors, a default method from another superinterface tree can
586 // "override" an abstract method(s) from another superinterface tree(s). To do this,
587 // ignore any [default] method which are dominated by the abstract methods we've seen so
603 // This might override another default method. Just stash it for now.
609 // If we reach here we either never found any declaration of the method (in which case
617 for (ArtMethod& method : GetDirectMethods(pointer_size)) {
618 if (method.IsClassInitializer()) {
619 DCHECK_STREQ(method.GetName(), "<clinit>");
620 DCHECK_STREQ(method.GetSignature().ToString().c_str(), "()V");
621 return &method;
920 auto method = methods[i];
921 DCHECK(method != nullptr);
922 SetEmbeddedImTableEntry(i, method, pointer_size);
1059 mirror::Method* Class::GetDeclaredMethodInternal(Thread* self,
1065 // return a non-synthetic method in such situations. We may
1066 // still return a synthetic method to handle situations like
1094 return mirror::Method::CreateFromArtMethod<kTransactionActive>(self, &m);
1097 result = &m; // Remember as potential result if it's not a miranda method.
1120 return mirror::Method::CreateFromArtMethod<kTransactionActive>(self, &m);
1127 ? mirror::Method::CreateFromArtMethod<kTransactionActive>(self, result)
1132 mirror::Method* Class::GetDeclaredMethodInternal<false>(Thread* self,
1137 mirror::Method* Class::GetDeclaredMethodInternal<true>(Thread* self,