| 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];
|
| }
|
|
|