TypeLocation can be shrunk by 8 bytes
authorrmorisset@apple.com <rmorisset@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Mar 2019 23:31:38 +0000 (23:31 +0000)
committerrmorisset@apple.com <rmorisset@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Mar 2019 23:31:38 +0000 (23:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195483

Reviewed by Mark Lam.

* bytecode/TypeLocation.h:
(JSC::TypeLocation::TypeLocation):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/TypeLocation.h

index 1dcf880..5733c66 100644 (file)
@@ -1,5 +1,15 @@
 2019-03-08  Robin Morisset  <rmorisset@apple.com>
 
+        TypeLocation can be shrunk by 8 bytes
+        https://bugs.webkit.org/show_bug.cgi?id=195483
+
+        Reviewed by Mark Lam.
+
+        * bytecode/TypeLocation.h:
+        (JSC::TypeLocation::TypeLocation):
+
+2019-03-08  Robin Morisset  <rmorisset@apple.com>
+
         GetByIdStatus can be shrunk by 16 bytes
         https://bugs.webkit.org/show_bug.cgi?id=195480
 
index bc75923..1e9239d 100644 (file)
@@ -40,21 +40,21 @@ typedef intptr_t GlobalVariableID;
 class TypeLocation {
 public:
     TypeLocation()
-        : m_lastSeenType(TypeNothing)
-        , m_divotForFunctionOffsetIfReturnStatement(UINT_MAX)
-        , m_instructionTypeSet(TypeSet::create())
+        : m_instructionTypeSet(TypeSet::create())
         , m_globalTypeSet(nullptr)
+        , m_divotForFunctionOffsetIfReturnStatement(UINT_MAX)
+        , m_lastSeenType(TypeNothing)
     {
     }
 
     GlobalVariableID m_globalVariableID;
-    RuntimeType m_lastSeenType;
+    RefPtr<TypeSet> m_instructionTypeSet;
+    RefPtr<TypeSet> m_globalTypeSet;
     intptr_t m_sourceID;
     unsigned m_divotStart;
     unsigned m_divotEnd;
     unsigned m_divotForFunctionOffsetIfReturnStatement;
-    RefPtr<TypeSet> m_instructionTypeSet;
-    RefPtr<TypeSet> m_globalTypeSet;
+    RuntimeType m_lastSeenType;
 };
 
 } // namespace JSC