From f2c43572c8bfd97c2d8bd7581d599d1a9fb2eb32 Mon Sep 17 00:00:00 2001 From: Almaz Mingaleev Date: Thu, 29 Aug 2024 09:52:58 +0000 Subject: Address follow-up comments from aosp/2721077. Bug: 297147201 Test: ./art/test/testrunner/testrunner.py --host --64 -b --optimizing Change-Id: Ie89d310633339b785de5d9f3daf653abfbff875c --- compiler/optimizing/nodes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index ffddd25843..eb6d9ecad4 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -4939,7 +4939,8 @@ class HInvokePolymorphic final : public HInvoke { dex::ProtoIndex GetProtoIndex() { return proto_idx_; } - bool CanTargetInvokeVirtual() const { + // Whether we can do direct invocation of the method handle. + bool CanHaveFastPath() const { return GetIntrinsic() == Intrinsics::kMethodHandleInvokeExact && GetNumberOfArguments() >= 2 && InputAt(1)->GetType() == DataType::Type::kReference; -- cgit v1.2.3-59-g8ed1b