summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h3
1 files changed, 2 insertions, 1 deletions
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;