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

Changeset 242718 in webkit


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

IntlDateTimeFormat can be shrunk by 32 bytes
https://bugs.webkit.org/show_bug.cgi?id=195504

Reviewed by Darin Adler.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r242717 r242718  
     12019-03-11  Robin Morisset  <rmorisset@apple.com>
     2
     3        IntlDateTimeFormat can be shrunk by 32 bytes
     4        https://bugs.webkit.org/show_bug.cgi?id=195504
     5
     6        Reviewed by Darin Adler.
     7
     8        * runtime/IntlDateTimeFormat.h:
     9
    1102019-03-11  Robin Morisset  <rmorisset@apple.com>
    211
  • trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.h

    r234475 r242718  
    6565
    6666private:
    67     enum class Weekday { None, Narrow, Short, Long };
    68     enum class Era { None, Narrow, Short, Long };
    69     enum class Year { None, TwoDigit, Numeric };
    70     enum class Month { None, TwoDigit, Numeric, Narrow, Short, Long };
    71     enum class Day { None, TwoDigit, Numeric };
    72     enum class Hour { None, TwoDigit, Numeric };
    73     enum class Minute { None, TwoDigit, Numeric };
    74     enum class Second { None, TwoDigit, Numeric };
    75     enum class TimeZoneName { None, Short, Long };
     67    enum class Weekday : uint8_t { None, Narrow, Short, Long };
     68    enum class Era : uint8_t { None, Narrow, Short, Long };
     69    enum class Year : uint8_t { None, TwoDigit, Numeric };
     70    enum class Month : uint8_t { None, TwoDigit, Numeric, Narrow, Short, Long };
     71    enum class Day : uint8_t { None, TwoDigit, Numeric };
     72    enum class Hour : uint8_t { None, TwoDigit, Numeric };
     73    enum class Minute : uint8_t { None, TwoDigit, Numeric };
     74    enum class Second : uint8_t { None, TwoDigit, Numeric };
     75    enum class TimeZoneName : uint8_t { None, Short, Long };
    7676
    7777    struct UDateFormatDeleter {
     
    9090    static ASCIILiteral timeZoneNameString(TimeZoneName);
    9191
    92     bool m_initializedDateTimeFormat { false };
    9392    WriteBarrier<JSBoundFunction> m_boundFormat;
    9493    std::unique_ptr<UDateFormat, UDateFormatDeleter> m_dateFormat;
     
    108107    Second m_second { Second::None };
    109108    TimeZoneName m_timeZoneName { TimeZoneName::None };
     109    bool m_initializedDateTimeFormat { false };
    110110
    111111#if JSC_ICU_HAS_UFIELDPOSITER
Note: See TracChangeset for help on using the changeset viewer.