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

Unified Diff: test/cctest/compiler/test-structured-ifbuilder-fuzzer.cc

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 | « test/cctest/compiler/test-instruction.cc ('k') | test/cctest/test-alloc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-structured-ifbuilder-fuzzer.cc
diff --git a/test/cctest/compiler/test-structured-ifbuilder-fuzzer.cc b/test/cctest/compiler/test-structured-ifbuilder-fuzzer.cc
index a59e0d39971b9e06caebd2ba75faf8faed1f06de..02232264d9ca3856004d9f3bbeab9ba74a60016a 100644
--- a/test/cctest/compiler/test-structured-ifbuilder-fuzzer.cc
+++ b/test/cctest/compiler/test-structured-ifbuilder-fuzzer.cc
@@ -44,7 +44,7 @@ class IfBuilderModel {
} else if (current_node_->then_node != NULL) {
current_node_ = current_node_->then_node;
}
- ASSERT(current_expression_ == NULL);
+ DCHECK(current_expression_ == NULL);
current_expression_ = new (zone_) Expression(zone_, NULL);
current_node_->condition = current_expression_;
}
@@ -57,15 +57,15 @@ class IfBuilderModel {
void Or() { NewChild()->disjunction = true; }
void Then() {
- ASSERT(current_expression_ == NULL || current_expression_->parent == NULL);
+ DCHECK(current_expression_ == NULL || current_expression_->parent == NULL);
current_expression_ = NULL;
- ASSERT(current_node_->then_node == NULL);
+ DCHECK(current_node_->then_node == NULL);
current_node_->then_node = new (zone_) Node(current_node_);
}
void Else() {
- ASSERT(current_expression_ == NULL || current_expression_->parent == NULL);
+ DCHECK(current_expression_ == NULL || current_expression_->parent == NULL);
current_expression_ = NULL;
- ASSERT(current_node_->else_node == NULL);
+ DCHECK(current_node_->else_node == NULL);
current_node_->else_node = new (zone_) Node(current_node_);
}
void Return() {
@@ -163,7 +163,7 @@ class IfBuilderModel {
static void PrintRecursive(std::vector<char>* v, Expression* expression) {
CHECK(expression != NULL);
if (expression->conjunction) {
- ASSERT(!expression->disjunction);
+ DCHECK(!expression->disjunction);
v->push_back('&');
} else if (expression->disjunction) {
v->push_back('|');
« no previous file with comments | « test/cctest/compiler/test-instruction.cc ('k') | test/cctest/test-alloc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698