From 9779307ce8f2dd40c429abb0f0cafc1415f70648 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 16 Feb 2016 15:33:54 +0000 Subject: HInvokeStaticOrDirect may not have a special input. For irreducible loops, we disable the generation of HX86ComputeBaseMethodAddress, so intrinsics code should not assume it's there. bug:27149923 Change-Id: I78ba0ca7aefa4033227c77ba438b6eaca53dadd9 --- compiler/optimizing/nodes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 18b256f48e..93f84edb40 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -3671,6 +3671,7 @@ class HInvokeStaticOrDirect : public HInvoke { // method pointer; otherwise there may be one platform-specific special input, // such as PC-relative addressing base. uint32_t GetSpecialInputIndex() const { return GetNumberOfArguments(); } + bool HasSpecialInput() const { return GetNumberOfArguments() != InputCount(); } InvokeType GetOptimizedInvokeType() const { return optimized_invoke_type_; } void SetOptimizedInvokeType(InvokeType invoke_type) { -- cgit v1.2.3-59-g8ed1b