Ignore:
Timestamp:
Dec 13, 2009, 4:27:07 PM (15 years ago)
Author:
[email protected]
Message:

https://bugs.webkit.org/show_bug.cgi?id=32496
Switch remaining cases of string construction to use StringBuilder.
Builds strings using a vector rather than using string append / addition.

Reviewed by Sam Weinig.

(JSC::FunctionExecutable::paramString):

  • runtime/FunctionConstructor.cpp:

(JSC::constructFunction):

  • runtime/JSGlobalObjectFunctions.cpp:

(JSC::encode):
(JSC::decode):
(JSC::globalFuncEscape):
(JSC::globalFuncUnescape):

  • runtime/JSONObject.cpp:

(JSC::Stringifier::stringify):
(JSC::Stringifier::indent):

  • runtime/JSString.h:
  • runtime/LiteralParser.cpp:

(JSC::LiteralParser::Lexer::lexString):

  • runtime/NumberPrototype.cpp:

(JSC::integerPartNoExp):
(JSC::numberProtoFuncToFixed):
(JSC::numberProtoFuncToPrecision):

  • runtime/Operations.h:

(JSC::jsString):

  • runtime/StringPrototype.cpp:

(JSC::substituteBackreferencesSlow):
(JSC::substituteBackreferences):
(JSC::stringProtoFuncConcat):

File:
1 edited

Legend:

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

    r52047 r52075  
    544544
    545545    template<>
    546     class StringTypeAdapter<char*>
    547     {
     546    class StringTypeAdapter<char*> {
    548547    public:
    549548        StringTypeAdapter<char*>(char* buffer)
     
    567566
    568567    template<>
    569     class StringTypeAdapter<const char*>
    570     {
     568    class StringTypeAdapter<const char*> {
    571569    public:
    572570        StringTypeAdapter<const char*>(const char* buffer)
     
    590588
    591589    template<>
    592     class StringTypeAdapter<UString>
    593     {
     590    class StringTypeAdapter<UString> {
    594591    public:
    595592        StringTypeAdapter<UString>(UString& string)
Note: See TracChangeset for help on using the changeset viewer.