diff options
author | 2015-09-14 21:26:33 +0000 | |
---|---|---|
committer | 2015-09-14 21:26:33 +0000 | |
commit | 659562aaf133c41b8d90ec9216c07646f0f14362 (patch) | |
tree | be1beae390262bf2f5a17bfa44de93081a849d07 /compiler/optimizing/nodes.cc | |
parent | b022fa1300e6d78639b3b910af0cf85c43df44bb (diff) |
Revert "ART: Register allocation and runtime support for try/catch"
Breaks libcore test org.apache.harmony.security.tests.java.security.KeyStorePrivateKeyEntryTest#testGetCertificateChain. Need to investigate.
This reverts commit b022fa1300e6d78639b3b910af0cf85c43df44bb.
Change-Id: Ib24d3a80064d963d273e557a93469c95f37b1f6f
Diffstat (limited to 'compiler/optimizing/nodes.cc')
-rw-r--r-- | compiler/optimizing/nodes.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 46ef04a868..b3cf0b3745 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -345,6 +345,16 @@ void HGraph::ComputeTryBlockInformation() { } } +bool HGraph::HasTryCatch() const { + for (size_t i = 0, e = blocks_.Size(); i < e; ++i) { + HBasicBlock* block = blocks_.Get(i); + if (block != nullptr && (block->IsTryBlock() || block->IsCatchBlock())) { + return true; + } + } + return false; +} + void HGraph::SimplifyCFG() { // Simplify the CFG for future analysis, and code generation: // (1): Split critical edges. |