Skip to content

Commit eaa9603

Browse files
aamcommit-bot@chromium.org
authored andcommitted
[vm/resolve] Cleanup ResolveDynamicAnyArgsWithCustomLookup.
This is follow-up to https://dart-review.googlesource.com/c/sdk/+/156421. Change-Id: I12018752965f82d76c2b712bc77f019f68684dc3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/157460 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Aprelev <aam@google.com>
1 parent d4b12d6 commit eaa9603

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime/vm/resolver.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static FunctionPtr ResolveDynamicAnyArgsWithCustomLookup(
7979

8080
// Getter invocation might actually be a method extraction.
8181
if (is_getter) {
82-
function = cls.LookupDynamicFunction(demangled_getter_name);
82+
function = lookup(cls, demangled_getter_name);
8383
if (!function.IsNull()) {
8484
if (allow_add && FLAG_lazy_dispatchers) {
8585
// We were looking for the getter but found a method with the same
@@ -136,7 +136,7 @@ FunctionPtr Resolver::ResolveDynamicForReceiverClass(
136136
bool allow_add) {
137137
return ResolveDynamicForReceiverClassWithCustomLookup(
138138
receiver_class, function_name, args_desc, allow_add,
139-
&Class::LookupDynamicFunction);
139+
std::mem_fn(&Class::LookupDynamicFunction));
140140
}
141141

142142
FunctionPtr Resolver::ResolveDynamicForReceiverClassAllowPrivate(
@@ -146,7 +146,7 @@ FunctionPtr Resolver::ResolveDynamicForReceiverClassAllowPrivate(
146146
bool allow_add) {
147147
return ResolveDynamicForReceiverClassWithCustomLookup(
148148
receiver_class, function_name, args_desc, allow_add,
149-
&Class::LookupDynamicFunctionAllowPrivate);
149+
std::mem_fn(&Class::LookupDynamicFunctionAllowPrivate));
150150
}
151151

152152
FunctionPtr Resolver::ResolveDynamicAnyArgs(Zone* zone,

0 commit comments

Comments
 (0)