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

https://bugs.webkit.org/show_bug.cgi?id=33731
Remove UntypedPtrAndBitfield from UStringImpl (akin to PtrAndFlags).

Patch by Gavin Barraclough <[email protected]> on 2010-01-18
Reviewed by Oliver Hunt.

This break the OS X Leaks tool. Instead, free up some more bits from the refCount.

  • runtime/UStringImpl.cpp:

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

  • runtime/UStringImpl.h:

(JSC::UStringImpl::cost):
(JSC::UStringImpl::checkConsistency):
(JSC::UStringImpl::UStringImpl):
(JSC::UStringImpl::bufferOwnerString):
(JSC::UStringImpl::):

  • wtf/StringHashFunctions.h:

(WTF::stringHash):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/UString.cpp

    r53400 r53454  
    349349UString UString::spliceSubstringsWithSeparators(const Range* substringRanges, int rangeCount, const UString* separators, int separatorCount) const
    350350{
    351     m_rep->checkConsistency();
    352 
    353351    if (rangeCount == 1 && separatorCount == 0) {
    354352        int thisSize = size();
     
    392390UString UString::replaceRange(int rangeStart, int rangeLength, const UString& replacement) const
    393391{
    394     m_rep->checkConsistency();
    395 
    396392    int replacementLength = replacement.size();
    397393    int totalLength = size() - rangeLength + replacementLength;
Note: See TracChangeset for help on using the changeset viewer.