diff options
author | 2016-01-20 16:48:30 +0000 | |
---|---|---|
committer | 2016-01-20 16:48:30 +0000 | |
commit | 440ef2cbc76d7e2bc76cf5f15b69fc0478d7e853 (patch) | |
tree | b2c457e09b6ebff0e1c7504d4bb1bf4bcfe1b8e6 /compiler/optimizing/nodes.h | |
parent | 5b98e3c84ab634ff259a94fe6148f10533b467da (diff) | |
parent | bc9ab1630a198efbbf730275541291321ac3d2d4 (diff) |
Merge "ART: Cannot assume String.<init> called on NewInstance"
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 48201e3d23..5246fd1f05 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -3693,19 +3693,13 @@ class HInvokeStaticOrDirect : public HInvoke { DCHECK(!IsStaticWithExplicitClinitCheck()); } - HNewInstance* GetThisArgumentOfStringInit() const { + HInstruction* GetAndRemoveThisArgumentOfStringInit() { DCHECK(IsStringInit()); size_t index = InputCount() - 1; - DCHECK(InputAt(index)->IsNewInstance()); - return InputAt(index)->AsNewInstance(); - } - - void RemoveThisArgumentOfStringInit() { - DCHECK(IsStringInit()); - size_t index = InputCount() - 1; - DCHECK(InputAt(index)->IsNewInstance()); + HInstruction* input = InputAt(index); RemoveAsUserOfInput(index); inputs_.pop_back(); + return input; } // Is this a call to a static method whose declaring class has an |