Ignore:
Timestamp:
Feb 9, 2010, 3:26:56 PM (15 years ago)
Author:
[email protected]
Message:

Rubber Stamped by Geoff Garen.

Rename StringBuilder::release && JSStringBuilder::releaseJSString
to 'build()'.

JavaScriptCore:

  • runtime/ArrayPrototype.cpp:

(JSC::arrayProtoFuncToLocaleString):
(JSC::arrayProtoFuncJoin):

  • runtime/Executable.cpp:

(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):

  • runtime/JSStringBuilder.h:

(JSC::JSStringBuilder::build):

  • runtime/LiteralParser.cpp:

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

  • runtime/NumberPrototype.cpp:

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

  • runtime/StringBuilder.h:

(JSC::StringBuilder::build):

WebCore:

  • bindings/js/ScriptString.h:

(WebCore::ScriptString::operator+=):

File:
1 edited

Legend:

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

    r54518 r54571  
    3535class JSStringBuilder : public StringBuilder {
    3636public:
    37     JSValue releaseJSString(ExecState* exec)
     37    JSValue build(ExecState* exec)
    3838    {
    3939        buffer.shrinkToFit();
     
    4141            return throwOutOfMemoryError(exec);
    4242        return jsString(exec, UString::adopt(buffer));
     43    }
     44
     45private:
     46    // Make attempts to call this compile error - if you only wanted a UString,
     47    // Why didn't you just use a StringBuilder?!  (This may change, maybe at some
     48    // point in the future we'll need to start building a string not knowing whether
     49    // we'll want a UString or a JSValue - but until we have this requirement,
     50    // block this).
     51    UString build()
     52    {
     53        ASSERT_NOT_REACHED();
     54        return StringBuilder::build();
    4355    }
    4456};
Note: See TracChangeset for help on using the changeset viewer.