diff options
| author | 2018-04-19 04:02:36 +0000 | |
|---|---|---|
| committer | 2018-04-19 04:02:36 +0000 | |
| commit | 080820c8e7a25bc3fb28d7c5a1524b0e5537c7a9 (patch) | |
| tree | 398d9bbd027743a233034d4977821c0275a918e7 /compiler/optimizing/nodes.cc | |
| parent | 2905de1c0e5b6a0c995be474b3f0efdfdc6a41c4 (diff) | |
Revert "Deopt does not throw"
This reverts commit 2905de1c0e5b6a0c995be474b3f0efdfdc6a41c4.
Reason for revert: test breaks on git_master-art-host; art-test-javac (linux)
Change-Id: Ic39d442776858c74d2163683c78bd3a8072ad45e
Diffstat (limited to 'compiler/optimizing/nodes.cc')
| -rw-r--r-- | compiler/optimizing/nodes.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 79bb70b9aa..f784f8f7f3 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -1916,6 +1916,15 @@ const HTryBoundary* HBasicBlock::ComputeTryEntryOfSuccessors() const { } } +bool HBasicBlock::HasThrowingInstructions() const { + for (HInstructionIterator it(GetInstructions()); !it.Done(); it.Advance()) { + if (it.Current()->CanThrow()) { + return true; + } + } + return false; +} + static bool HasOnlyOneInstruction(const HBasicBlock& block) { return block.GetPhis().IsEmpty() && !block.GetInstructions().IsEmpty() |