Ignore:
Timestamp:
Nov 18, 2009, 7:12:50 PM (16 years ago)
Author:
[email protected]
Message:

2009-11-18 Kent Tamura <[email protected]>

Reviewed by Darin Adler.

Move UString::from(double) implementation to new
WTF::doubleToStringInJavaScriptFormat(), and expose it because WebCore
code will use it.
https://bugs.webkit.org/show_bug.cgi?id=31330

  • Introduce new function createRep(const char*, unsigned) and UString::UString(const char*, unsigned) to reduce 2 calls to strlen().
  • Fix a bug that dtoa() doesn't update *rve if the input value is NaN or Infinity.

No new tests because this doesn't change the behavior.

  • JavaScriptCore.exp:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
  • runtime/UString.cpp: (JSC::createRep): (JSC::UString::UString): (JSC::UString::from): Move the code to doubleToStringInJavaScriptFormat().
  • runtime/UString.h:
  • wtf/dtoa.cpp: (WTF::dtoa): Fix a bug about rve. (WTF::append): A helper for doubleToStringInJavaScriptFormat(). (WTF::doubleToStringInJavaScriptFormat): Move the code from UString::from(double).
  • wtf/dtoa.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r50706 r51168  
    332332__ZN3WTF27releaseFastMallocFreeMemoryEv
    333333__ZN3WTF28setMainThreadCallbacksPausedEb
     334__ZN3WTF32doubleToStringInJavaScriptFormatEdPcPj
    334335__ZN3WTF36lockAtomicallyInitializedStaticMutexEv
    335336__ZN3WTF37parseDateFromNullTerminatedCharactersEPKc
Note: See TracChangeset for help on using the changeset viewer.