summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.cc
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2015-09-14 21:27:03 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-09-14 21:27:03 +0000
commite81783ad2a53c7ef1b70d8260790e379cc57cb19 (patch)
treec36820d91358bb5cbf66160f85e4de7f36d8bfd4 /compiler/optimizing/nodes.cc
parent37ef3c00282ba0bc81b95946728b9dd5f1586104 (diff)
parent659562aaf133c41b8d90ec9216c07646f0f14362 (diff)
Merge "Revert "ART: Register allocation and runtime support for try/catch""
Diffstat (limited to 'compiler/optimizing/nodes.cc')
-rw-r--r--compiler/optimizing/nodes.cc10
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.