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

Unified Diff: src/data-flow.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/d8.cc ('k') | src/date.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/data-flow.h
diff --git a/src/data-flow.h b/src/data-flow.h
index 58ef34781ee5cc14bcf625c8e289d7acc4e48717..042e29f854b5d1a8f27000f40f0c6746088d547f 100644
--- a/src/data-flow.h
+++ b/src/data-flow.h
@@ -25,7 +25,7 @@ class BitVector: public ZoneObject {
current_index_(0),
current_value_(target->data_[0]),
current_(-1) {
- ASSERT(target->data_length_ > 0);
+ DCHECK(target->data_length_ > 0);
Advance();
}
~Iterator() { }
@@ -34,7 +34,7 @@ class BitVector: public ZoneObject {
void Advance();
int Current() const {
- ASSERT(!Done());
+ DCHECK(!Done());
return current_;
}
@@ -66,7 +66,7 @@ class BitVector: public ZoneObject {
: length_(length),
data_length_(SizeFor(length)),
data_(zone->NewArray<uint32_t>(data_length_)) {
- ASSERT(length > 0);
+ DCHECK(length > 0);
Clear();
}
@@ -87,7 +87,7 @@ class BitVector: public ZoneObject {
}
void CopyFrom(const BitVector& other) {
- ASSERT(other.length() <= length());
+ DCHECK(other.length() <= length());
for (int i = 0; i < other.data_length_; i++) {
data_[i] = other.data_[i];
}
@@ -97,30 +97,30 @@ class BitVector: public ZoneObject {
}
bool Contains(int i) const {
- ASSERT(i >= 0 && i < length());
+ DCHECK(i >= 0 && i < length());
uint32_t block = data_[i / 32];
return (block & (1U << (i % 32))) != 0;
}
void Add(int i) {
- ASSERT(i >= 0 && i < length());
+ DCHECK(i >= 0 && i < length());
data_[i / 32] |= (1U << (i % 32));
}
void Remove(int i) {
- ASSERT(i >= 0 && i < length());
+ DCHECK(i >= 0 && i < length());
data_[i / 32] &= ~(1U << (i % 32));
}
void Union(const BitVector& other) {
- ASSERT(other.length() == length());
+ DCHECK(other.length() == length());
for (int i = 0; i < data_length_; i++) {
data_[i] |= other.data_[i];
}
}
bool UnionIsChanged(const BitVector& other) {
- ASSERT(other.length() == length());
+ DCHECK(other.length() == length());
bool changed = false;
for (int i = 0; i < data_length_; i++) {
uint32_t old_data = data_[i];
@@ -131,14 +131,14 @@ class BitVector: public ZoneObject {
}
void Intersect(const BitVector& other) {
- ASSERT(other.length() == length());
+ DCHECK(other.length() == length());
for (int i = 0; i < data_length_; i++) {
data_[i] &= other.data_[i];
}
}
void Subtract(const BitVector& other) {
- ASSERT(other.length() == length());
+ DCHECK(other.length() == length());
for (int i = 0; i < data_length_; i++) {
data_[i] &= ~other.data_[i];
}
« no previous file with comments | « src/d8.cc ('k') | src/date.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698