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

Unified Diff: src/dateparser.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/date.cc ('k') | src/dateparser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/dateparser.h
diff --git a/src/dateparser.h b/src/dateparser.h
index 0a0a6f0d9dee16f4a8bb68ad62307a29288c8cf0..f284590264175bc4a7a79bb87873d89ad3c2d502 100644
--- a/src/dateparser.h
+++ b/src/dateparser.h
@@ -151,19 +151,19 @@ class DateParser : public AllStatic {
int length() { return length_; }
int number() {
- ASSERT(IsNumber());
+ DCHECK(IsNumber());
return value_;
}
KeywordType keyword_type() {
- ASSERT(IsKeyword());
+ DCHECK(IsKeyword());
return static_cast<KeywordType>(tag_);
}
int keyword_value() {
- ASSERT(IsKeyword());
+ DCHECK(IsKeyword());
return value_;
}
char symbol() {
- ASSERT(IsSymbol());
+ DCHECK(IsSymbol());
return static_cast<char>(value_);
}
bool IsSymbol(char symbol) {
@@ -179,7 +179,7 @@ class DateParser : public AllStatic {
return tag_ == kSymbolTag && (value_ == '-' || value_ == '+');
}
int ascii_sign() {
- ASSERT(IsAsciiSign());
+ DCHECK(IsAsciiSign());
return 44 - value_;
}
bool IsKeywordZ() {
« no previous file with comments | « src/date.cc ('k') | src/dateparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698