Changeset 242716 in webkit
- Timestamp:
- Mar 11, 2019, 10:27:47 AM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
runtime/IntlNumberFormat.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r242715 r242716 1 2019-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 1 10 2019-03-11 Caio Lima <ticaiolima@gmail.com> 2 11 -
trunk/Source/JavaScriptCore/runtime/IntlNumberFormat.h
r240992 r242716 65 65 66 66 private: 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 }; 69 69 70 70 struct UNumberFormatDeleter { … … 77 77 String m_locale; 78 78 String m_numberingSystem; 79 Style m_style { Style::Decimal };80 79 String m_currency; 81 CurrencyDisplay m_currencyDisplay; 80 std::unique_ptr<UNumberFormat, UNumberFormatDeleter> m_numberFormat; 81 WriteBarrier<JSBoundFunction> m_boundFormat; 82 82 unsigned m_minimumIntegerDigits { 1 }; 83 83 unsigned m_minimumFractionDigits { 0 }; … … 85 85 unsigned m_minimumSignificantDigits { 0 }; 86 86 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; 89 89 bool m_useGrouping { true }; 90 90 bool m_initializedNumberFormat { false };
Note:
See TracChangeset
for help on using the changeset viewer.