Title: [242660] trunk/Source/_javascript_Core
Revision
242660
Author
[email protected]
Date
2019-03-08 15:31:38 -0800 (Fri, 08 Mar 2019)

Log Message

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):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (242659 => 242660)


--- trunk/Source/_javascript_Core/ChangeLog	2019-03-08 23:24:25 UTC (rev 242659)
+++ trunk/Source/_javascript_Core/ChangeLog	2019-03-08 23:31:38 UTC (rev 242660)
@@ -1,5 +1,15 @@
 2019-03-08  Robin Morisset  <[email protected]>
 
+        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  <[email protected]>
+
         GetByIdStatus can be shrunk by 16 bytes
         https://bugs.webkit.org/show_bug.cgi?id=195480
 

Modified: trunk/Source/_javascript_Core/bytecode/TypeLocation.h (242659 => 242660)


--- trunk/Source/_javascript_Core/bytecode/TypeLocation.h	2019-03-08 23:24:25 UTC (rev 242659)
+++ trunk/Source/_javascript_Core/bytecode/TypeLocation.h	2019-03-08 23:31:38 UTC (rev 242660)
@@ -40,21 +40,21 @@
 class TypeLocation {
 public:
     TypeLocation()
-        : m_lastSeenType(TypeNothing)
+        : m_instructionTypeSet(TypeSet::create())
+        , m_globalTypeSet(nullptr)
         , m_divotForFunctionOffsetIfReturnStatement(UINT_MAX)
-        , m_instructionTypeSet(TypeSet::create())
-        , m_globalTypeSet(nullptr)
+        , 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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to