Title: [233622] trunk/Source/_javascript_Core
Revision
233622
Author
[email protected]
Date
2018-07-07 13:46:28 -0700 (Sat, 07 Jul 2018)

Log Message

[JSC] Optimize layout of SymbolTable to reduce padding
https://bugs.webkit.org/show_bug.cgi?id=187437

Reviewed by Mark Lam.

Arrange the layout of SymbolTable to reduce the size from 88 to 72.

* runtime/SymbolTable.h:

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (233621 => 233622)


--- trunk/Source/_javascript_Core/ChangeLog	2018-07-07 20:29:31 UTC (rev 233621)
+++ trunk/Source/_javascript_Core/ChangeLog	2018-07-07 20:46:28 UTC (rev 233622)
@@ -1,5 +1,16 @@
 2018-07-07  Yusuke Suzuki  <[email protected]>
 
+        [JSC] Optimize layout of SymbolTable to reduce padding
+        https://bugs.webkit.org/show_bug.cgi?id=187437
+
+        Reviewed by Mark Lam.
+
+        Arrange the layout of SymbolTable to reduce the size from 88 to 72.
+
+        * runtime/SymbolTable.h:
+
+2018-07-07  Yusuke Suzuki  <[email protected]>
+
         [JSC] Optimize layout of RegExp to reduce padding
         https://bugs.webkit.org/show_bug.cgi?id=187438
 

Modified: trunk/Source/_javascript_Core/runtime/SymbolTable.h (233621 => 233622)


--- trunk/Source/_javascript_Core/runtime/SymbolTable.h	2018-07-07 20:29:31 UTC (rev 233621)
+++ trunk/Source/_javascript_Core/runtime/SymbolTable.h	2018-07-07 20:46:28 UTC (rev 233622)
@@ -696,6 +696,12 @@
 
     Map m_map;
     ScopeOffset m_maxScopeOffset;
+public:
+    mutable ConcurrentJSLock m_lock;
+private:
+    unsigned m_usesNonStrictEval : 1;
+    unsigned m_nestedLexicalScope : 1; // Non-function LexicalScope.
+    unsigned m_scopeType : 3; // ScopeType
     
     struct SymbolTableRareData {
         UniqueIDMap m_uniqueIDMap;
@@ -705,17 +711,10 @@
     };
     std::unique_ptr<SymbolTableRareData> m_rareData;
 
-    bool m_usesNonStrictEval : 1;
-    bool m_nestedLexicalScope : 1; // Non-function LexicalScope.
-    unsigned m_scopeType : 3; // ScopeType
-    
     WriteBarrier<ScopedArgumentsTable> m_arguments;
     WriteBarrier<InferredValue> m_singletonScope;
     
     std::unique_ptr<LocalToEntryVec> m_localToEntry;
-
-public:
-    mutable ConcurrentJSLock m_lock;
 };
 
 } // namespace JSC
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to