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

Changeset 242717 in webkit


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

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

Reviewed by Darin Adler.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

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

    r233122 r242717  
    6060
    6161private:
    62     enum class Usage { Sort, Search };
    63     enum class Sensitivity { Base, Accent, Case, Variant };
    64     enum class CaseFirst { Upper, Lower, False };
     62    enum class Usage : uint8_t { Sort, Search };
     63    enum class Sensitivity : uint8_t { Base, Accent, Case, Variant };
     64    enum class CaseFirst : uint8_t { Upper, Lower, False };
    6565
    6666    struct UCollatorDeleter {
     
    7373    static ASCIILiteral caseFirstString(CaseFirst);
    7474
    75     Usage m_usage;
    7675    String m_locale;
    7776    String m_collation;
     77    WriteBarrier<JSBoundFunction> m_boundCompare;
     78    std::unique_ptr<UCollator, UCollatorDeleter> m_collator;
     79    Usage m_usage;
    7880    Sensitivity m_sensitivity;
    7981    CaseFirst m_caseFirst;
    80     WriteBarrier<JSBoundFunction> m_boundCompare;
    81     std::unique_ptr<UCollator, UCollatorDeleter> m_collator;
    8282    bool m_numeric;
    8383    bool m_ignorePunctuation;
Note: See TracChangeset for help on using the changeset viewer.