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

Unified Diff: runtime/vm/flow_graph.cc

Issue 11014013: Added slow_assert macro and flag for slow development assertions in the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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.cc
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc
index d434d610ebed6c587bd311253424cd663142f8e5..8d9ccae7707e5122fcb5de13b044c0da809d877a 100644
--- a/runtime/vm/flow_graph.cc
+++ b/runtime/vm/flow_graph.cc
@@ -12,6 +12,7 @@
namespace dart {
+DECLARE_FLAG(bool, slow_assert);
DECLARE_FLAG(bool, trace_optimization);
FlowGraph::FlowGraph(const FlowGraphBuilder& builder,
@@ -282,7 +283,7 @@ void FlowGraph::ComputeUseLists() {
ClearUseLists((*graph_entry_->initial_definitions())[i]);
}
ComputeUseListsRecursive(graph_entry_);
- DEBUG_ASSERT(ValidateUseLists());
+ SLOW_ASSERT(ValidateUseLists());
}

Powered by Google App Engine
This is Rietveld 408576698