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

Unified Diff: src/effects.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/dtoa.cc ('k') | src/elements.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects.h
diff --git a/src/effects.h b/src/effects.h
index 8cf5a88ee423f0ead91714ccd7fd35a8c705b58e..70c9a97a9c6bddb2d50df81c15b55bb3d117358c 100644
--- a/src/effects.h
+++ b/src/effects.h
@@ -195,15 +195,15 @@ class EffectsBase {
typedef typename Mapping::Locator Locator;
bool Contains(Var var) {
- ASSERT(var != kNoVar);
+ DCHECK(var != kNoVar);
return map_->Contains(var);
}
bool Find(Var var, Locator* locator) {
- ASSERT(var != kNoVar);
+ DCHECK(var != kNoVar);
return map_->Find(var, locator);
}
bool Insert(Var var, Locator* locator) {
- ASSERT(var != kNoVar);
+ DCHECK(var != kNoVar);
return map_->Insert(var, locator);
}
@@ -259,7 +259,7 @@ class NestedEffectsBase {
bool is_empty() { return node_ == NULL; }
bool Contains(Var var) {
- ASSERT(var != kNoVar);
+ DCHECK(var != kNoVar);
for (Node* node = node_; node != NULL; node = node->previous) {
if (node->effects.Contains(var)) return true;
}
@@ -267,7 +267,7 @@ class NestedEffectsBase {
}
bool Find(Var var, Locator* locator) {
- ASSERT(var != kNoVar);
+ DCHECK(var != kNoVar);
for (Node* node = node_; node != NULL; node = node->previous) {
if (node->effects.Find(var, locator)) return true;
}
@@ -293,7 +293,7 @@ class NestedEffectsBase {
template<class Var, Var kNoVar>
bool NestedEffectsBase<Var, kNoVar>::Insert(Var var, Locator* locator) {
- ASSERT(var != kNoVar);
+ DCHECK(var != kNoVar);
if (!node_->effects.Insert(var, locator)) return false;
Locator shadowed;
for (Node* node = node_->previous; node != NULL; node = node->previous) {
@@ -326,7 +326,7 @@ class NestedEffects: public
NestedEffects Pop() {
NestedEffects result = *this;
result.pop();
- ASSERT(!this->is_empty());
+ DCHECK(!this->is_empty());
return result;
}
};
« no previous file with comments | « src/dtoa.cc ('k') | src/elements.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698