summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Andra Danciu <andradanciu@google.com> 2020-07-27 13:16:37 +0000
committer Orion Hodson <oth@google.com> 2020-07-28 10:01:23 +0000
commitb931b8c25c93c9384fa6c02bc487cf7424fa6057 (patch)
treeeaa091cac485552c71e7e2e88a2d970f223eb9e5 /compiler/optimizing/nodes.h
parent853fc2ea8c4fb30d71adb1dbba6ebf0e8493ba51 (diff)
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
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h3
1 files changed, 3 insertions, 0 deletions
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,