summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes_x86.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2017-01-22 15:44:39 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2017-01-23 16:09:26 +0000
commit133719e01111cea9d4919df4e8e90b5c51f7ad5a (patch)
tree6b0edefdbbf4201146d7cf2ff82e365e39dc8017 /compiler/optimizing/nodes_x86.h
parent5e821602426718bf971c3d693c3f8ff15d85017d (diff)
Allow multiple HX86ComputeBaseMethodAddress.
So that even graphs with irreducible loops can use it and avoid loading methods/classes/strings through KDexCacheViaMethod. Test: test-art-host Change-Id: I14109cfdc82347a7af420ca0ee55172ec37ca8ef
Diffstat (limited to 'compiler/optimizing/nodes_x86.h')
-rw-r--r--compiler/optimizing/nodes_x86.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes_x86.h b/compiler/optimizing/nodes_x86.h
index fa479760fe..75893c3129 100644
--- a/compiler/optimizing/nodes_x86.h
+++ b/compiler/optimizing/nodes_x86.h
@@ -71,6 +71,10 @@ class HX86FPNeg FINAL : public HExpression<2> {
SetRawInputAt(1, method_base);
}
+ HX86ComputeBaseMethodAddress* GetBaseMethodAddress() const {
+ return InputAt(1)->AsX86ComputeBaseMethodAddress();
+ }
+
DECLARE_INSTRUCTION(X86FPNeg);
private: