summaryrefslogtreecommitdiff
path: root/compiler/optimizing/builder.h
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2015-05-08 15:52:48 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-05-08 15:52:49 +0000
commit6727a48193db2a0cf01af971cccffe1a6518c247 (patch)
treef86189e3d30e38377666f309693fc58d90eb7d6a /compiler/optimizing/builder.h
parentadd1d9ba61b6ddd52f2161587baf3ae4bc8717af (diff)
parent702d26018769f9fbc4763c7ed02331aed596ac7d (diff)
Merge "Skip compilation when falling-through out of method code."
Diffstat (limited to 'compiler/optimizing/builder.h')
-rw-r--r--compiler/optimizing/builder.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h
index dc6d97eb0c..36503ce43a 100644
--- a/compiler/optimizing/builder.h
+++ b/compiler/optimizing/builder.h
@@ -88,7 +88,10 @@ class HGraphBuilder : public ValueObject {
// the newly created blocks.
// As a side effect, also compute the number of dex instructions, blocks, and
// branches.
- void ComputeBranchTargets(const uint16_t* start,
+ // Returns true if all the branches fall inside the method code, false otherwise.
+ // (In normal cases this should always return true but someone can artificially
+ // create a code unit in which branches fall-through out of it).
+ bool ComputeBranchTargets(const uint16_t* start,
const uint16_t* end,
size_t* number_of_branches);
void MaybeUpdateCurrentBlock(size_t index);