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

Unified Diff: src/prettyprinter.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 | « src/preparser.cc ('k') | src/profile-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/prettyprinter.cc
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
index f1b30eda0e66f08de1b748f3299df5b7bf7b8ad0..19b0290758cb05d1e9ca2305ae05d58886fa80ef 100644
--- a/src/prettyprinter.cc
+++ b/src/prettyprinter.cc
@@ -137,7 +137,7 @@ void PrettyPrinter::VisitContinueStatement(ContinueStatement* node) {
ZoneList<const AstRawString*>* labels = node->target()->labels();
if (labels != NULL) {
Print(" ");
- ASSERT(labels->length() > 0); // guaranteed to have at least one entry
+ DCHECK(labels->length() > 0); // guaranteed to have at least one entry
PrintLiteral(labels->at(0), false); // any label from the list is fine
}
Print(";");
@@ -149,7 +149,7 @@ void PrettyPrinter::VisitBreakStatement(BreakStatement* node) {
ZoneList<const AstRawString*>* labels = node->target()->labels();
if (labels != NULL) {
Print(" ");
- ASSERT(labels->length() > 0); // guaranteed to have at least one entry
+ DCHECK(labels->length() > 0); // guaranteed to have at least one entry
PrintLiteral(labels->at(0), false); // any label from the list is fine
}
Print(";");
@@ -479,7 +479,7 @@ void PrettyPrinter::PrintOut(Zone* zone, AstNode* node) {
void PrettyPrinter::Init() {
if (size_ == 0) {
- ASSERT(output_ == NULL);
+ DCHECK(output_ == NULL);
const int initial_size = 256;
output_ = NewArray<char>(initial_size);
size_ = initial_size;
@@ -645,7 +645,7 @@ AstPrinter::AstPrinter(Zone* zone) : PrettyPrinter(zone), indent_(0) {
AstPrinter::~AstPrinter() {
- ASSERT(indent_ == 0);
+ DCHECK(indent_ == 0);
}
« no previous file with comments | « src/preparser.cc ('k') | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698