Skip to content
  • paroga@webkit.org's avatar
    Make the String initialization on the function side of String::number() · 93e6a741
    paroga@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=95940
    
    Reviewed by Benjamin Poulain.
    
    Source/JavaScriptCore:
    
    * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
    
    Source/WebKit2:
    
    * win/WebKit2.def:
    * win/WebKit2CFLite.def:
    
    Source/WTF:
    
    Un-Inline String::number() to make the String initialization done on the function side
    instead of being on the caller side.
    
    * GNUmakefile.list.am:
    * WTF.gypi:
    * WTF.pro:
    * WTF.vcproj/WTF.vcproj:
    * WTF.xcodeproj/project.pbxproj:
    * wtf/CMakeLists.txt:
    * wtf/text/IntegerToStringConversion.cpp: Removed.
    * wtf/text/IntegerToStringConversion.h:
    (WTF::numberToStringImpl):
    (WTF::numberToStringSigned):
    (WTF::numberToStringUnsigned):
    * wtf/text/WTFString.cpp:
    (WTF::String::number):
    * wtf/text/WTFString.h:
    
    Tools:
    
    * TestWebKitAPI/Tests/WTF/IntegerToStringConversion.cpp:
    (testBoundaries):
    (testNumbers):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    93e6a741