Ignore:
Timestamp:
Jan 18, 2010, 11:22:51 PM (15 years ago)
Author:
[email protected]
Message:

Revert r53454, since it causes much sadness in this world.

Patch by Gavin Barraclough <[email protected]> on 2010-01-18
Reviewed by NOBODY (build fix).

  • runtime/UString.cpp:

(JSC::UString::spliceSubstringsWithSeparators):
(JSC::UString::replaceRange):

  • runtime/UStringImpl.cpp:

(JSC::UStringImpl::baseSharedBuffer):
(JSC::UStringImpl::sharedBuffer):
(JSC::UStringImpl::~UStringImpl):

  • runtime/UStringImpl.h:

(JSC::UntypedPtrAndBitfield::UntypedPtrAndBitfield):
(JSC::UntypedPtrAndBitfield::asPtr):
(JSC::UntypedPtrAndBitfield::operator&=):
(JSC::UntypedPtrAndBitfield::operator|=):
(JSC::UntypedPtrAndBitfield::operator&):
(JSC::UStringImpl::create):
(JSC::UStringImpl::cost):
(JSC::UStringImpl::isIdentifier):
(JSC::UStringImpl::setIsIdentifier):
(JSC::UStringImpl::ref):
(JSC::UStringImpl::deref):
(JSC::UStringImpl::checkConsistency):
(JSC::UStringImpl::UStringImpl):
(JSC::UStringImpl::bufferOwnerString):
(JSC::UStringImpl::bufferOwnership):
(JSC::UStringImpl::isStatic):

  • wtf/StringHashFunctions.h:

(WTF::stringHash):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/StringHashFunctions.h

    r53454 r53456  
    6161    hash ^= hash << 10;
    6262
     63    hash &= 0x7fffffff;
     64
    6365    // this avoids ever returning a hash code of 0, since that is used to
    6466    // signal "hash not computed yet", using a value that is likely to be
    6567    // effectively the same as 0 when the low bits are masked
    6668    if (hash == 0)
    67         hash = 0x80000000;
     69        hash = 0x40000000;
    6870
    6971    return hash;
     
    99101    hash ^= hash << 10;
    100102
     103    hash &= 0x7fffffff;
     104
    101105    // this avoids ever returning a hash code of 0, since that is used to
    102106    // signal "hash not computed yet", using a value that is likely to be
    103107    // effectively the same as 0 when the low bits are masked
    104108    if (hash == 0)
    105         hash = 0x80000000;
     109        hash = 0x40000000;
    106110
    107111    return hash;
     
    138142    hash ^= hash << 10;
    139143
     144    hash &= 0x7fffffff;
     145
    140146    // This avoids ever returning a hash code of 0, since that is used to
    141147    // signal "hash not computed yet", using a value that is likely to be
    142148    // effectively the same as 0 when the low bits are masked.
    143149    if (hash == 0)
    144         hash = 0x80000000;
     150        hash = 0x40000000;
    145151
    146152    return hash;
Note: See TracChangeset for help on using the changeset viewer.