⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242716 in webkit


Ignore:
Timestamp:
Mar 11, 2019, 10:27:47 AM (7 years ago)
Author:
rmorisset@apple.com
Message:

IntlNumberFormat can be shrunk by 16 bytes
https://bugs.webkit.org/show_bug.cgi?id=195505

Reviewed by Darin Adler.

  • runtime/IntlNumberFormat.h:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r242715 r242716  
     12019-03-11  Robin Morisset  <rmorisset@apple.com>
     2
     3        IntlNumberFormat can be shrunk by 16 bytes
     4        https://bugs.webkit.org/show_bug.cgi?id=195505
     5
     6        Reviewed by Darin Adler.
     7
     8        * runtime/IntlNumberFormat.h:
     9
    1102019-03-11  Caio Lima  <ticaiolima@gmail.com>
    211
  • trunk/Source/JavaScriptCore/runtime/IntlNumberFormat.h

    r240992 r242716  
    6565
    6666private:
    67     enum class Style { Decimal, Percent, Currency };
    68     enum class CurrencyDisplay { Code, Symbol, Name };
     67    enum class Style : uint8_t { Decimal, Percent, Currency };
     68    enum class CurrencyDisplay : uint8_t { Code, Symbol, Name };
    6969
    7070    struct UNumberFormatDeleter {
     
    7777    String m_locale;
    7878    String m_numberingSystem;
    79     Style m_style { Style::Decimal };
    8079    String m_currency;
    81     CurrencyDisplay m_currencyDisplay;
     80    std::unique_ptr<UNumberFormat, UNumberFormatDeleter> m_numberFormat;
     81    WriteBarrier<JSBoundFunction> m_boundFormat;
    8282    unsigned m_minimumIntegerDigits { 1 };
    8383    unsigned m_minimumFractionDigits { 0 };
     
    8585    unsigned m_minimumSignificantDigits { 0 };
    8686    unsigned m_maximumSignificantDigits { 0 };
    87     std::unique_ptr<UNumberFormat, UNumberFormatDeleter> m_numberFormat;
    88     WriteBarrier<JSBoundFunction> m_boundFormat;
     87    Style m_style { Style::Decimal };
     88    CurrencyDisplay m_currencyDisplay;
    8989    bool m_useGrouping { true };
    9090    bool m_initializedNumberFormat { false };
Note: See TracChangeset for help on using the changeset viewer.