⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242673 in webkit


Ignore:
Timestamp:
Mar 9, 2019, 9:25:11 AM (7 years ago)
Author:
rmorisset@apple.com
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:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r242672 r242673  
     12019-03-09  Robin Morisset  <rmorisset@apple.com>
     2
     3        BinarySwitch can be shrunk by 8 bytes
     4        https://bugs.webkit.org/show_bug.cgi?id=195493
     5
     6        Reviewed by Mark Lam.
     7
     8        * jit/BinarySwitch.cpp:
     9        (JSC::BinarySwitch::BinarySwitch):
     10        * jit/BinarySwitch.h:
     11
    1122019-03-09  Robin Morisset  <rmorisset@apple.com>
    213
  • trunk/Source/JavaScriptCore/jit/BinarySwitch.cpp

    r241267 r242673  
    4141
    4242BinarySwitch::BinarySwitch(GPRReg value, const Vector<int64_t>& cases, Type type)
    43     : m_value(value)
     43    : m_type(type)
     44    , m_value(value)
    4445    , m_weakRandom(globalCounter++)
    4546    , m_index(0)
    4647    , m_caseIndex(UINT_MAX)
    47     , m_type(type)
    4848{
    4949    if (cases.isEmpty())
  • trunk/Source/JavaScriptCore/jit/BinarySwitch.h

    r206525 r242673  
    7979    void build(unsigned start, bool hardStart, unsigned end);
    8080   
     81    Type m_type;
    8182    GPRReg m_value;
    8283   
     
    135136   
    136137    MacroAssembler::JumpList m_fallThrough;
    137    
    138     Type m_type;
    139138};
    140139
Note: See TracChangeset for help on using the changeset viewer.