Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: runtime/vm/flow_graph.h

Issue 10879041: Validate well-formedness of the use lists in debug mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph.h
diff --git a/runtime/vm/flow_graph.h b/runtime/vm/flow_graph.h
index 710d0583ba06ff6e7615d6aae85352f056aaf221..3d7c51d12e2f90d7b0c58fd43ef695a2fe34d4cb 100644
--- a/runtime/vm/flow_graph.h
+++ b/runtime/vm/flow_graph.h
@@ -69,6 +69,12 @@ class FlowGraph: public ZoneAllocated {
// TODO(zerny): Once the SSA is feature complete this should be removed.
void Bailout(const char* reason) const;
+#ifdef DEBUG
+ // Validation methods for debugging.
+ bool ResetUseLists();
+ bool ValidateUseLists();
+#endif // DEBUG
+
private:
void DiscoverBlocks();
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph.cc » ('j') | runtime/vm/flow_graph.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698