wtf/BitVector.h has a variety of bugs which manifest when the
[WebKit-https.git] / Source / JavaScriptCore / ChangeLog
index a94ae7fceda65100c4ef23230c8dc4a2e85147e4..10b531d16ecf64f7847c0f7a57974245fbd4e50a 100644 (file)
@@ -1,3 +1,41 @@
+2011-09-23  Filip Pizlo  <fpizlo@apple.com>
+
+        wtf/BitVector.h has a variety of bugs which manifest when the
+        vector grows beyond 63 bits
+        https://bugs.webkit.org/show_bug.cgi?id=68746
+
+        Reviewed by Oliver Hunt.
+        
+        Out-of-lined slow path code in BitVector so that not every user
+        of CodeBlock ends up having to compile it. Fixed a variety of
+        index computation and size computation bugs.
+        
+        I have not seen these issues manifest themselves, but they are
+        blocking a patch that uses BitVector more aggressively.
+
+        * GNUmakefile.list.am:
+        * JavaScriptCore.vcproj/WTF/WTF.vcproj:
+        * JavaScriptCore.xcodeproj/project.pbxproj:
+        * wtf/BitVector.cpp: Added.
+        (BitVector::BitVector):
+        (BitVector::operator=):
+        (BitVector::resize):
+        (BitVector::clearAll):
+        (BitVector::OutOfLineBits::create):
+        (BitVector::OutOfLineBits::destroy):
+        (BitVector::resizeOutOfLine):
+        * wtf/BitVector.h:
+        (WTF::BitVector::ensureSize):
+        (WTF::BitVector::get):
+        (WTF::BitVector::set):
+        (WTF::BitVector::clear):
+        (WTF::BitVector::byteCount):
+        (WTF::BitVector::OutOfLineBits::numWords):
+        (WTF::BitVector::OutOfLineBits::bits):
+        (WTF::BitVector::outOfLineBits):
+        * wtf/CMakeLists.txt:
+        * wtf/wtf.pri:
+
 2011-09-23  Adam Klein  <adamk@chromium.org>
 
         Add ENABLE_MUTATION_OBSERVERS feature flag