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

Unified Diff: src/token.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/sweeper-thread.cc ('k') | src/transitions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/token.h
diff --git a/src/token.h b/src/token.h
index 2e7d5d96e974117486689876defa3b31cd9fc4ba..3535e343af8b0dd8e4dd21dca0fffffb0ddfd805 100644
--- a/src/token.h
+++ b/src/token.h
@@ -174,7 +174,7 @@ class Token {
// Returns a string corresponding to the C++ token name
// (e.g. "LT" for the token LT).
static const char* Name(Value tok) {
- ASSERT(tok < NUM_TOKENS); // tok is unsigned
+ DCHECK(tok < NUM_TOKENS); // tok is unsigned
return name_[tok];
}
@@ -217,7 +217,7 @@ class Token {
}
static Value NegateCompareOp(Value op) {
- ASSERT(IsArithmeticCompareOp(op));
+ DCHECK(IsArithmeticCompareOp(op));
switch (op) {
case EQ: return NE;
case NE: return EQ;
@@ -234,7 +234,7 @@ class Token {
}
static Value ReverseCompareOp(Value op) {
- ASSERT(IsArithmeticCompareOp(op));
+ DCHECK(IsArithmeticCompareOp(op));
switch (op) {
case EQ: return EQ;
case NE: return NE;
@@ -270,14 +270,14 @@ class Token {
// (.e., "<" for the token LT) or NULL if the token doesn't
// have a (unique) string (e.g. an IDENTIFIER).
static const char* String(Value tok) {
- ASSERT(tok < NUM_TOKENS); // tok is unsigned.
+ DCHECK(tok < NUM_TOKENS); // tok is unsigned.
return string_[tok];
}
// Returns the precedence > 0 for binary and compare
// operators; returns 0 otherwise.
static int Precedence(Value tok) {
- ASSERT(tok < NUM_TOKENS); // tok is unsigned.
+ DCHECK(tok < NUM_TOKENS); // tok is unsigned.
return precedence_[tok];
}
« no previous file with comments | « src/sweeper-thread.cc ('k') | src/transitions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698