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

Unified Diff: src/compiler/generic-node.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/compiler/generic-algorithm.h ('k') | src/compiler/generic-node-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/generic-node.h
diff --git a/src/compiler/generic-node.h b/src/compiler/generic-node.h
index a7d6661fca454b2ba6b76a9ee61dfef551c51ea9..287d852f5ed7f053a0add2ba494753744907f89a 100644
--- a/src/compiler/generic-node.h
+++ b/src/compiler/generic-node.h
@@ -49,7 +49,7 @@ class GenericNode : public B {
int UseCount() { return use_count_; }
S* UseAt(int index) {
- ASSERT(index < use_count_);
+ DCHECK(index < use_count_);
Use* current = first_use_;
while (index-- != 0) {
current = current->next;
@@ -168,7 +168,7 @@ class GenericNode<B, S>::Edge {
S* to() const { return static_cast<S*>(input_->to); }
int index() const {
int index = input_->use->input_index;
- ASSERT(index < input_->use->from->input_count_);
+ DCHECK(index < input_->use->from->input_count_);
return index;
}
@@ -199,8 +199,8 @@ class GenericNode<B, S>::Inputs::iterator {
}
bool operator!=(const iterator& other) const { return !(other == *this); }
iterator& operator++() {
- ASSERT(node_ != NULL);
- ASSERT(index_ < node_->input_count_);
+ DCHECK(node_ != NULL);
+ DCHECK(index_ < node_->input_count_);
++index_;
return *this;
}
@@ -235,13 +235,13 @@ class GenericNode<B, S>::Uses::iterator {
bool operator==(const iterator& other) { return other.current_ == current_; }
bool operator!=(const iterator& other) { return other.current_ != current_; }
iterator& operator++() {
- ASSERT(current_ != NULL);
+ DCHECK(current_ != NULL);
index_++;
current_ = current_->next;
return *this;
}
iterator& UpdateToAndIncrement(GenericNode<B, S>* new_to) {
- ASSERT(current_ != NULL);
+ DCHECK(current_ != NULL);
index_++;
typename GenericNode<B, S>::Input* input = CurrentInput();
current_ = current_->next;
« no previous file with comments | « src/compiler/generic-algorithm.h ('k') | src/compiler/generic-node-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698