Index: Source/wtf/BitVector.cpp |
diff --git a/Source/wtf/BitVector.cpp b/Source/wtf/BitVector.cpp |
index 3a4588ecb43d6f8d476e9ff84b5e2bcdd9dae768..903794b2eee7d8a9f5a81ab766385675153cdf9b 100644 |
--- a/Source/wtf/BitVector.cpp |
+++ b/Source/wtf/BitVector.cpp |
@@ -73,6 +73,11 @@ void BitVector::clearAll() |
memset(outOfLineBits()->bits(), 0, byteCount(size())); |
} |
+void BitVector::setAll() |
+{ |
+ memset(bits(), 0xFF, byteCount(size())); |
+} |
+ |
BitVector::OutOfLineBits* BitVector::OutOfLineBits::create(size_t numBits) |
{ |
// Because of the way BitVector stores the pointer, memory tools |