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

Unified Diff: src/compiler/generic-algorithm.h

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 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
« no previous file with comments | « src/compiler/gap-resolver.cc ('k') | src/compiler/generic-node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/generic-algorithm.h
diff --git a/src/compiler/generic-algorithm.h b/src/compiler/generic-algorithm.h
index f7bb2fe9e729dc00514bd486c26b9d894c102fda..607d339ae40d9b58e6104a9710acec06f9412c12 100644
--- a/src/compiler/generic-algorithm.h
+++ b/src/compiler/generic-algorithm.h
@@ -52,10 +52,10 @@ class GenericGraphVisit {
BoolVector visited(Traits::max_id(graph), false, ZoneBoolAllocator(zone));
Node* current = *root_begin;
while (true) {
- ASSERT(current != NULL);
+ DCHECK(current != NULL);
const int id = current->id();
- ASSERT(id >= 0);
- ASSERT(id < Traits::max_id(graph)); // Must be a valid id.
+ DCHECK(id >= 0);
+ DCHECK(id < Traits::max_id(graph)); // Must be a valid id.
bool visit = !GetVisited(&visited, id);
if (visit) {
Control control = visitor->Pre(current);
@@ -71,7 +71,7 @@ class GenericGraphVisit {
if (top.first == top.second) {
if (visit) {
Control control = visitor->Post(post_order_node);
- ASSERT(!IsSkip(control));
+ DCHECK(!IsSkip(control));
SetVisited(&visited, post_order_node->id(), !IsReenter(control));
}
stack.pop();
« no previous file with comments | « src/compiler/gap-resolver.cc ('k') | src/compiler/generic-node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698