Title: [204942] trunk/Source/_javascript_Core
Revision
204942
Author
[email protected]
Date
2016-08-24 16:27:30 -0700 (Wed, 24 Aug 2016)

Log Message

Shrink DFG::OSRExit a bit.
<https://webkit.org/b/161169>

Reviewed by Geoffrey Garen.

Rearrange the members of OSRExitBase and DFG::OSRExit to save 16 bytes per instance.

* dfg/DFGOSRExit.cpp:
(JSC::DFG::OSRExit::OSRExit):
* dfg/DFGOSRExit.h:
* dfg/DFGOSRExitBase.h:
(JSC::DFG::OSRExitBase::OSRExitBase):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (204941 => 204942)


--- trunk/Source/_javascript_Core/ChangeLog	2016-08-24 23:26:20 UTC (rev 204941)
+++ trunk/Source/_javascript_Core/ChangeLog	2016-08-24 23:27:30 UTC (rev 204942)
@@ -1,3 +1,18 @@
+2016-08-24  Andreas Kling  <[email protected]>
+
+        Shrink DFG::OSRExit a bit.
+        <https://webkit.org/b/161169>
+
+        Reviewed by Geoffrey Garen.
+
+        Rearrange the members of OSRExitBase and DFG::OSRExit to save 16 bytes per instance.
+
+        * dfg/DFGOSRExit.cpp:
+        (JSC::DFG::OSRExit::OSRExit):
+        * dfg/DFGOSRExit.h:
+        * dfg/DFGOSRExitBase.h:
+        (JSC::DFG::OSRExitBase::OSRExitBase):
+
 2016-08-24  Ryan Haddad  <[email protected]>
 
         Rebaseline builtins-generator-tests since r204854 was rolled out.

Modified: trunk/Source/_javascript_Core/dfg/DFGOSRExit.cpp (204941 => 204942)


--- trunk/Source/_javascript_Core/dfg/DFGOSRExit.cpp	2016-08-24 23:26:20 UTC (rev 204941)
+++ trunk/Source/_javascript_Core/dfg/DFGOSRExit.cpp	2016-08-24 23:27:30 UTC (rev 204942)
@@ -40,7 +40,6 @@
     : OSRExitBase(kind, jit->m_origin.forExit, jit->m_origin.semantic, jit->m_origin.wasHoisted)
     , m_jsValueSource(jsValueSource)
     , m_valueProfile(valueProfile)
-    , m_patchableCodeOffset(0)
     , m_recoveryIndex(recoveryIndex)
     , m_streamIndex(streamIndex)
 {

Modified: trunk/Source/_javascript_Core/dfg/DFGOSRExit.h (204941 => 204942)


--- trunk/Source/_javascript_Core/dfg/DFGOSRExit.h	2016-08-24 23:26:20 UTC (rev 204941)
+++ trunk/Source/_javascript_Core/dfg/DFGOSRExit.h	2016-08-24 23:27:30 UTC (rev 204942)
@@ -98,13 +98,13 @@
 // going into baseline code.
 struct OSRExit : public OSRExitBase {
     OSRExit(ExitKind, JSValueSource, MethodOfGettingAValueProfile, SpeculativeJIT*, unsigned streamIndex, unsigned recoveryIndex = UINT_MAX);
+
+    unsigned m_patchableCodeOffset { 0 };
     
     MacroAssemblerCodeRef m_code;
     
     JSValueSource m_jsValueSource;
     MethodOfGettingAValueProfile m_valueProfile;
-
-    unsigned m_patchableCodeOffset;
     
     unsigned m_recoveryIndex;
 

Modified: trunk/Source/_javascript_Core/dfg/DFGOSRExitBase.h (204941 => 204942)


--- trunk/Source/_javascript_Core/dfg/DFGOSRExitBase.h	2016-08-24 23:26:20 UTC (rev 204941)
+++ trunk/Source/_javascript_Core/dfg/DFGOSRExitBase.h	2016-08-24 23:27:30 UTC (rev 204942)
@@ -42,7 +42,6 @@
 struct OSRExitBase {
     OSRExitBase(ExitKind kind, CodeOrigin origin, CodeOrigin originForProfile, bool wasHoisted)
         : m_kind(kind)
-        , m_count(0)
         , m_wasHoisted(wasHoisted)
         , m_codeOrigin(origin)
         , m_codeOriginForExitProfile(originForProfile)
@@ -50,9 +49,9 @@
         ASSERT(m_codeOrigin.isSet());
         ASSERT(m_codeOriginForExitProfile.isSet());
     }
-    
+
+    uint32_t m_count { 0 };
     ExitKind m_kind;
-    uint32_t m_count;
     bool m_wasHoisted;
     
     CodeOrigin m_codeOrigin;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to