Index: src/bit-vector.h |
diff --git a/src/bit-vector.h b/src/bit-vector.h |
index 29c6b438a9b037e84d3833773f4da3c9b71a89ef..9e1ce81db9047b921279d0b3da319b1a11a898fd 100644 |
--- a/src/bit-vector.h |
+++ b/src/bit-vector.h |
@@ -103,6 +103,8 @@ class BitVector : public ZoneObject { |
data_[i / kDataBits] |= (kOne << (i % kDataBits)); |
} |
+ void AddAll() { memset(data_, -1, sizeof(uintptr_t) * data_length_); } |
+ |
void Remove(int i) { |
DCHECK(i >= 0 && i < length()); |
data_[i / kDataBits] &= ~(kOne << (i % kDataBits)); |