Skip to content
Snippets Groups Projects
Commit 083469db authored by stepan's avatar stepan
Browse files

Explanatory comment in ClassHierarchyNode

parent 36e1422b
Branches
No related tags found
No related merge requests found
...@@ -124,6 +124,9 @@ public abstract class ClassHierarchyNode extends UnaryNode { ...@@ -124,6 +124,9 @@ public abstract class ClassHierarchyNode extends UnaryNode {
RAttributes attributes; RAttributes attributes;
if (attrStorageProfile.profile(arg instanceof RAttributeStorage)) { if (attrStorageProfile.profile(arg instanceof RAttributeStorage)) {
// Note: the seemingly unnecessary cast is here to ensure the method can be inlined // Note: the seemingly unnecessary cast is here to ensure the method can be inlined
// Note2: the attrStorageProfile and cast is better at helping compiler to inline
// 'getAttributes' than just the ValueProfile in else branch, which degrades when it
// sees two different classes
attributes = ((RAttributeStorage) arg).getAttributes(); attributes = ((RAttributeStorage) arg).getAttributes();
} else { } else {
arg = argProfile.profile(arg); arg = argProfile.profile(arg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment