Skip to content
  • fpizlo@apple.com's avatar
    wtf/BitVector.h has a variety of bugs which manifest when the · 61a4da4f
    fpizlo@apple.com authored
    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:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    61a4da4f