Changeset 65286 in webkit for trunk/JavaScriptCore/debugger


Ignore:
Timestamp:
Aug 12, 2010, 6:05:10 PM (15 years ago)
Author:
[email protected]
Message:

Change UString constructors to match those in WTF::String.
This changes behaviour of UString((char*)0) to create null
strings, akin to UString() rather than UString::empty().
(This matches String). Remove unused constructors from
UString, and add null-terminated UTF-16 constructor, to
match String. Move String's constructor into the .cpp to
match UString.

Reviewed by Sam Weinig

(JSC::DebuggerCallFrame::calculatedFunctionName):

  • runtime/RegExpKey.h:

(JSC::RegExpKey::RegExpKey):

  • runtime/SmallStrings.cpp:

(JSC::SmallStrings::createSingleCharacterString):

  • runtime/UString.cpp:

(JSC::UString::UString):

  • runtime/UString.h:

(JSC::UString::UString):
(JSC::UString::swap):
(JSC::UString::adopt):
(JSC::UString::operator[]):

  • wtf/text/WTFString.h:

(WTF::String::String):
(WTF::String::adopt):
(WTF::String::operator[]):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/debugger/DebuggerCallFrame.cpp

    r60392 r65286  
    5858    JSObject* function = m_callFrame->callee();
    5959    if (!function || !function->inherits(&JSFunction::info))
    60         return 0;
     60        return UString();
    6161
    6262    return asFunction(function)->calculatedDisplayName(m_callFrame);
Note: See TracChangeset for help on using the changeset viewer.