Changeset 65289 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Aug 12, 2010, 7:29:31 PM (15 years ago)
Author:
[email protected]
Message:

Eeerk! - revert accidentally committed changes in UString!

(JSC::UString::UString):

  • runtime/UString.h:
Location:
trunk/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r65286 r65289  
     12010-08-12  Gavin Barraclough  <[email protected]>
     2
     3        Eeerk! - revert accidentally committed changes in UString!
     4
     5        * JavaScriptCore.exp:
     6        * runtime/UString.cpp:
     7        (JSC::UString::UString):
     8        * runtime/UString.h:
     9
    1102010-08-12  Gavin Barraclough  <[email protected]>
    211
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r65286 r65289  
    256256__ZN3JSC7UString6numberEj
    257257__ZN3JSC7UString6numberEl
     258__ZN3JSC7UStringC1EPKc
     259__ZN3JSC7UStringC1EPKcj
     260__ZN3JSC7UStringC1EPKt
     261__ZN3JSC7UStringC1EPKtj
    258262__ZN3JSC8Debugger23recompileAllJSFunctionsEPNS_12JSGlobalDataE
    259263__ZN3JSC8Debugger6attachEPNS_14JSGlobalObjectE
  • trunk/JavaScriptCore/runtime/UString.cpp

    r65286 r65289  
    5757COMPILE_ASSERT(sizeof(UString) == sizeof(void*), UString_should_stay_small);
    5858
    59 //    UString::UString(const UChar* characters, unsigned length)
    60 //        : m_impl(characters ? StringImpl::create(characters, length) : 0)
    61 //    {
    62 //    }
     59// Construct a string with UTF-16 data.
     60UString::UString(const UChar* characters, unsigned length)
     61    : m_impl(characters ? StringImpl::create(characters, length) : 0)
     62{
     63}
     64
     65// Construct a string with UTF-16 data, from a null-terminated source.
    6366UString::UString(const UChar* characters)
    6467{
     
    7275    m_impl = StringImpl::create(characters, length);
    7376}
    74 //    UString::UString(const char* characters)
    75 //        : m_impl(characters ? StringImpl::create(characters) : 0)
    76 //    {
    77 //    }
    78 //    UString::UString(const char* characters, unsigned length)
    79 //        : m_impl(characters ? StringImpl::create(characters, length) : 0)
    80 //    {
    81 //    }
     77
     78// Construct a string with latin1 data.
     79UString::UString(const char* characters, unsigned length)
     80    : m_impl(characters ? StringImpl::create(characters, length) : 0)
     81{
     82}
     83
     84// Construct a string with latin1 data, from a null-terminated source.
     85UString::UString(const char* characters)
     86    : m_impl(characters ? StringImpl::create(characters) : 0)
     87{
     88}
    8289
    8390UString UString::number(int i)
  • trunk/JavaScriptCore/runtime/UString.h

    r65286 r65289  
    4848
    4949    // Construct a string with UTF-16 data.
    50     UString(const UChar* characters, unsigned length)
    51         : m_impl(characters ? StringImpl::create(characters, length) : 0)
    52     {
    53     }
     50    UString(const UChar* characters, unsigned length);
    5451
    5552    // Construct a string with UTF-16 data, from a null-terminated source.
     
    5754
    5855    // Construct a string with latin1 data.
    59     UString(const char* characters)
    60         : m_impl(characters ? StringImpl::create(characters) : 0)
    61     {
    62     }
     56    UString(const char* characters);
    6357
    6458    // Construct a string with latin1 data, from a null-terminated source.
    65     UString(const char* characters, unsigned length)
    66         : m_impl(characters ? StringImpl::create(characters, length) : 0)
    67     {
    68     }
     59    UString(const char* characters, unsigned length);
    6960
    7061    // Construct a string referencing an existing StringImpl.
Note: See TracChangeset for help on using the changeset viewer.