diff options
author | Mark Mendell <mark.p.mendell@intel.com> | 2015-04-24 17:06:35 -0400 |
---|---|---|
committer | Mark Mendell <mark.p.mendell@intel.com> | 2015-04-24 19:25:51 -0400 |
commit | 1152c926076a760490085c4497c3f117fa8da891 (patch) | |
tree | 215d3f45a946f51ae680ec50239ebc48f929aed7 /compiler/optimizing/graph_checker.h | |
parent | 76f1413492c228bfa710e1eaa4c60370eaffbb8a (diff) | |
download | art-1152c926076a760490085c4497c3f117fa8da891.tar.gz art-1152c926076a760490085c4497c3f117fa8da891.tar.bz2 art-1152c926076a760490085c4497c3f117fa8da891.zip |
[optimizing] Rename HasArrayAccesses and check it
Since the flag is only used to see if there is a HBoundsCheck, rename
HasArrayAccesses() to HasBoundsChecks().
Add a check in graph_checker to see that the flag is set if we see a
HBoundsCheck instruction.
Change-Id: I10fe92897374fb247082152dd75c3611cc40ff30
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
Diffstat (limited to 'compiler/optimizing/graph_checker.h')
-rw-r--r-- | compiler/optimizing/graph_checker.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/optimizing/graph_checker.h b/compiler/optimizing/graph_checker.h index 45e8804edb..b4314da03b 100644 --- a/compiler/optimizing/graph_checker.h +++ b/compiler/optimizing/graph_checker.h @@ -45,6 +45,9 @@ class GraphChecker : public HGraphDelegateVisitor { // Perform control-flow graph checks on instruction. void VisitInvokeStaticOrDirect(HInvokeStaticOrDirect* invoke) OVERRIDE; + // Check that the HasBoundsChecks() flag is set for bounds checks. + void VisitBoundsCheck(HBoundsCheck* check) OVERRIDE; + // Was the last visit of the graph valid? bool IsValid() const { return errors_.empty(); |