[JSC] Reorder JSSegmentedVariableObject member for preparation of JSGlobalObject...
authoryusukesuzuki@slowstart.org <yusukesuzuki@slowstart.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Jan 2019 23:15:15 +0000 (23:15 +0000)
committeryusukesuzuki@slowstart.org <yusukesuzuki@slowstart.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Jan 2019 23:15:15 +0000 (23:15 +0000)
https://bugs.webkit.org/show_bug.cgi?id=193609

Reviewed by Sam Weinig.

Basically, we should order the members in large => small order not to add paddings.

* runtime/JSSegmentedVariableObject.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240204 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/JSSegmentedVariableObject.h

index d6c084b..915e120 100644 (file)
@@ -1,3 +1,14 @@
+2019-01-19  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
+
+        [JSC] Reorder JSSegmentedVariableObject member for preparation of JSGlobalObject memory reduction
+        https://bugs.webkit.org/show_bug.cgi?id=193609
+
+        Reviewed by Sam Weinig.
+
+        Basically, we should order the members in large => small order not to add paddings.
+
+        * runtime/JSSegmentedVariableObject.h:
+
 2019-01-19  Antoine Quint  <graouts@apple.com>
 
         Add a POINTER_EVENTS feature flag
index ae30db7..cb5fe37 100644 (file)
@@ -107,9 +107,9 @@ protected:
     
 private:
     SegmentedVector<WriteBarrier<Unknown>, 16> m_variables;
+    PoisonedClassInfoPtr m_classInfo;
     ConcurrentJSLock m_lock;
     bool m_alreadyDestroyed { false }; // We use these assertions to check that we aren't doing ancient hacks that result in this being destroyed more than once.
-    PoisonedClassInfoPtr m_classInfo;
 };
 
 } // namespace JSC