Title: [242717] trunk/Source/_javascript_Core
- Revision
- 242717
- Author
- [email protected]
- Date
- 2019-03-11 10:39:35 -0700 (Mon, 11 Mar 2019)
Log Message
IntlCollator can be shrunk by 16 bytes
https://bugs.webkit.org/show_bug.cgi?id=195503
Reviewed by Darin Adler.
* runtime/IntlCollator.h:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (242716 => 242717)
--- trunk/Source/_javascript_Core/ChangeLog 2019-03-11 17:27:47 UTC (rev 242716)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-03-11 17:39:35 UTC (rev 242717)
@@ -1,5 +1,14 @@
2019-03-11 Robin Morisset <[email protected]>
+ IntlCollator can be shrunk by 16 bytes
+ https://bugs.webkit.org/show_bug.cgi?id=195503
+
+ Reviewed by Darin Adler.
+
+ * runtime/IntlCollator.h:
+
+2019-03-11 Robin Morisset <[email protected]>
+
IntlNumberFormat can be shrunk by 16 bytes
https://bugs.webkit.org/show_bug.cgi?id=195505
Modified: trunk/Source/_javascript_Core/runtime/IntlCollator.h (242716 => 242717)
--- trunk/Source/_javascript_Core/runtime/IntlCollator.h 2019-03-11 17:27:47 UTC (rev 242716)
+++ trunk/Source/_javascript_Core/runtime/IntlCollator.h 2019-03-11 17:39:35 UTC (rev 242717)
@@ -59,9 +59,9 @@
static void visitChildren(JSCell*, SlotVisitor&);
private:
- enum class Usage { Sort, Search };
- enum class Sensitivity { Base, Accent, Case, Variant };
- enum class CaseFirst { Upper, Lower, False };
+ enum class Usage : uint8_t { Sort, Search };
+ enum class Sensitivity : uint8_t { Base, Accent, Case, Variant };
+ enum class CaseFirst : uint8_t { Upper, Lower, False };
struct UCollatorDeleter {
void operator()(UCollator*) const;
@@ -72,13 +72,13 @@
static ASCIILiteral sensitivityString(Sensitivity);
static ASCIILiteral caseFirstString(CaseFirst);
- Usage m_usage;
String m_locale;
String m_collation;
+ WriteBarrier<JSBoundFunction> m_boundCompare;
+ std::unique_ptr<UCollator, UCollatorDeleter> m_collator;
+ Usage m_usage;
Sensitivity m_sensitivity;
CaseFirst m_caseFirst;
- WriteBarrier<JSBoundFunction> m_boundCompare;
- std::unique_ptr<UCollator, UCollatorDeleter> m_collator;
bool m_numeric;
bool m_ignorePunctuation;
bool m_initializedCollator { false };
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes