Title: [242673] trunk/Source/_javascript_Core
Revision
242673
Author
[email protected]
Date
2019-03-09 09:25:11 -0800 (Sat, 09 Mar 2019)

Log Message

BinarySwitch can be shrunk by 8 bytes
https://bugs.webkit.org/show_bug.cgi?id=195493

Reviewed by Mark Lam.

* jit/BinarySwitch.cpp:
(JSC::BinarySwitch::BinarySwitch):
* jit/BinarySwitch.h:

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (242672 => 242673)


--- trunk/Source/_javascript_Core/ChangeLog	2019-03-09 17:24:16 UTC (rev 242672)
+++ trunk/Source/_javascript_Core/ChangeLog	2019-03-09 17:25:11 UTC (rev 242673)
@@ -1,5 +1,16 @@
 2019-03-09  Robin Morisset  <[email protected]>
 
+        BinarySwitch can be shrunk by 8 bytes
+        https://bugs.webkit.org/show_bug.cgi?id=195493
+
+        Reviewed by Mark Lam.
+
+        * jit/BinarySwitch.cpp:
+        (JSC::BinarySwitch::BinarySwitch):
+        * jit/BinarySwitch.h:
+
+2019-03-09  Robin Morisset  <[email protected]>
+
         AsyncStackTrace can be shrunk by 8 bytes
         https://bugs.webkit.org/show_bug.cgi?id=195491
 

Modified: trunk/Source/_javascript_Core/jit/BinarySwitch.cpp (242672 => 242673)


--- trunk/Source/_javascript_Core/jit/BinarySwitch.cpp	2019-03-09 17:24:16 UTC (rev 242672)
+++ trunk/Source/_javascript_Core/jit/BinarySwitch.cpp	2019-03-09 17:25:11 UTC (rev 242673)
@@ -40,11 +40,11 @@
 static unsigned globalCounter; // We use a different seed every time we are invoked.
 
 BinarySwitch::BinarySwitch(GPRReg value, const Vector<int64_t>& cases, Type type)
-    : m_value(value)
+    : m_type(type)
+    , m_value(value)
     , m_weakRandom(globalCounter++)
     , m_index(0)
     , m_caseIndex(UINT_MAX)
-    , m_type(type)
 {
     if (cases.isEmpty())
         return;

Modified: trunk/Source/_javascript_Core/jit/BinarySwitch.h (242672 => 242673)


--- trunk/Source/_javascript_Core/jit/BinarySwitch.h	2019-03-09 17:24:16 UTC (rev 242672)
+++ trunk/Source/_javascript_Core/jit/BinarySwitch.h	2019-03-09 17:25:11 UTC (rev 242673)
@@ -78,6 +78,7 @@
 private:
     void build(unsigned start, bool hardStart, unsigned end);
     
+    Type m_type;
     GPRReg m_value;
     
     struct Case {
@@ -134,8 +135,6 @@
     Vector<MacroAssembler::Jump> m_jumpStack;
     
     MacroAssembler::JumpList m_fallThrough;
-    
-    Type m_type;
 };
 
 } // namespace JSC
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to