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
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index e6e60b7..5eaa7fb 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -4508,6 +4508,9 @@
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,