From b931b8c25c93c9384fa6c02bc487cf7424fa6057 Mon Sep 17 00:00:00 2001 From: Andra Danciu Date: Mon, 27 Jul 2020 13:16:37 +0000 Subject: Add clarification for HInvokePolymorphic constructor parameter Added a comment that clarifies why the ArtMethod object is needed for HInvokePolymorphic nodes. Bug: b/65872996 Change-Id: I9dd0451aa29492b17c5963ffb3e9925601262f3b --- compiler/optimizing/nodes.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index e6e60b7837..5eaa7fb518 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -4508,6 +4508,9 @@ class HInvokePolymorphic final : public HInvoke { DataType::Type return_type, uint32_t dex_pc, uint32_t dex_method_index, + // resolved_method is the ArtMethod object corresponding to the polymorphic + // method (e.g. VarHandle.get), resolved using the class linker. It is needed + // to pass intrinsic information to the HInvokePolymorphic node. ArtMethod* resolved_method) : HInvoke(kInvokePolymorphic, allocator, -- cgit v1.2.3-59-g8ed1b