summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/graph_checker.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-12-17 10:13:46 +0000
committerNicolas Geoffray <ngeoffray@google.com>2014-12-17 14:11:29 +0000
commit7c5367badfe61b96c5836d495d286cee64861579 (patch)
tree0468316d467302abc1f9feae3af8e64c2877610b /compiler/optimizing/graph_checker.h
parent240016da1d6615b26c8342bdeb4bae381570ac47 (diff)
downloadart-7c5367badfe61b96c5836d495d286cee64861579.tar.gz
art-7c5367badfe61b96c5836d495d286cee64861579.tar.bz2
art-7c5367badfe61b96c5836d495d286cee64861579.zip
Fix ids and remove invoke when inlining.
Bugs found by Razvan Lupusoru. Change-Id: I3a5a9af280d8700d18f52abb4a2cff0e3a9aac74
Diffstat (limited to 'compiler/optimizing/graph_checker.h')
-rw-r--r--compiler/optimizing/graph_checker.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/optimizing/graph_checker.h b/compiler/optimizing/graph_checker.h
index b6c9f1720c..ba60cb99c6 100644
--- a/compiler/optimizing/graph_checker.h
+++ b/compiler/optimizing/graph_checker.h
@@ -30,7 +30,8 @@ class GraphChecker : public HGraphDelegateVisitor {
const char* dump_prefix = "art::GraphChecker: ")
: HGraphDelegateVisitor(graph),
allocator_(allocator),
- dump_prefix_(dump_prefix) {}
+ dump_prefix_(dump_prefix),
+ seen_ids_(allocator, graph->GetCurrentInstructionId(), false) {}
// Check the whole graph (in insertion order).
virtual void Run() { VisitInsertionOrder(); }
@@ -68,6 +69,7 @@ class GraphChecker : public HGraphDelegateVisitor {
private:
// String displayed before dumped errors.
const char* const dump_prefix_;
+ ArenaBitVector seen_ids_;
DISALLOW_COPY_AND_ASSIGN(GraphChecker);
};