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

Unified Diff: src/ast-value-factory.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/ast.cc ('k') | src/ast-value-factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast-value-factory.h
diff --git a/src/ast-value-factory.h b/src/ast-value-factory.h
index bb93d10cd25c2369a418d728c9c9e1ff56541668..c3bf24c2d67c96ced6b99341de54648afb178d07 100644
--- a/src/ast-value-factory.h
+++ b/src/ast-value-factory.h
@@ -52,7 +52,7 @@ class AstString : public ZoneObject {
// This function can be called after internalizing.
V8_INLINE Handle<String> string() const {
- ASSERT(!string_.is_null());
+ DCHECK(!string_.is_null());
return string_;
}
@@ -177,7 +177,7 @@ class AstValue : public ZoneObject {
if (type_ == STRING) {
return string_->string();
}
- ASSERT(!value_.is_null());
+ DCHECK(!value_.is_null());
return value_;
}
@@ -203,7 +203,7 @@ class AstValue : public ZoneObject {
explicit AstValue(double n) : type_(NUMBER) { number_ = n; }
AstValue(Type t, int i) : type_(t) {
- ASSERT(type_ == SMI);
+ DCHECK(type_ == SMI);
smi_ = i;
}
@@ -214,7 +214,7 @@ class AstValue : public ZoneObject {
}
explicit AstValue(Type t) : type_(t) {
- ASSERT(t == NULL_TYPE || t == UNDEFINED || t == THE_HOLE);
+ DCHECK(t == NULL_TYPE || t == UNDEFINED || t == THE_HOLE);
}
Type type_;
« no previous file with comments | « src/ast.cc ('k') | src/ast-value-factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698