⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 102082 in webkit


Ignore:
Timestamp:
Dec 5, 2011, 6:06:48 PM (15 years ago)
Author:
msaboff@apple.com
Message:

Create StringImpl::empty() as an 8 bit string
https://bugs.webkit.org/show_bug.cgi?id=73871

Reviewed by Oliver Hunt.

  • wtf/text/StringStatics.cpp:

(WTF::StringImpl::empty): Changed to be an 8 bit string.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r102065 r102082  
     12011-12-05  Michael Saboff  <msaboff@apple.com>
     2
     3        Create StringImpl::empty() as an 8 bit string
     4        https://bugs.webkit.org/show_bug.cgi?id=73871
     5
     6        Reviewed by Oliver Hunt.
     7
     8        * wtf/text/StringStatics.cpp:
     9        (WTF::StringImpl::empty): Changed to be an 8 bit string.
     10
    1112011-12-05  Darin Adler  <darin@apple.com>
    212
  • trunk/Source/JavaScriptCore/wtf/text/StringStatics.cpp

    r101778 r102082  
    4747    // Replace this with 'reinterpret_cast<UChar*>(static_cast<intptr_t>(1))' once
    4848    // PCRE goes away.
    49     static UChar emptyUCharData = 0;
    50     DEFINE_STATIC_LOCAL(StringImpl, emptyString, (&emptyUCharData, 0, ConstructStaticString));
     49    static LChar emptyLCharData = 0;
     50    DEFINE_STATIC_LOCAL(StringImpl, emptyString, (&emptyLCharData, 0, ConstructStaticString));
    5151    WTF_ANNOTATE_BENIGN_RACE(&emptyString, "Benign race on StringImpl::emptyString reference counter");
    5252    return &emptyString;
Note: See TracChangeset for help on using the changeset viewer.