Changeset 223971 in webkit


Ignore:
Timestamp:
Oct 25, 2017 12:06:42 PM (6 years ago)
Author:
keith_miller@apple.com
Message:

Fix implicit cast of enum, which seems to break the windows build of unified sources.
https://bugs.webkit.org/show_bug.cgi?id=178822

Reviewed by Saam Barati.

  • bytecode/DFGExitProfile.h:

(JSC::DFG::FrequentExitSite::hash const):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r223937 r223971  
     12017-10-25  Keith Miller  <keith_miller@apple.com>
     2
     3        Fix implicit cast of enum, which seems to break the windows build of unified sources.
     4        https://bugs.webkit.org/show_bug.cgi?id=178822
     5
     6        Reviewed by Saam Barati.
     7
     8        * bytecode/DFGExitProfile.h:
     9        (JSC::DFG::FrequentExitSite::hash const):
     10
    1112017-10-24  Michael Saboff  <msaboff@apple.com>
    212
  • trunk/Source/JavaScriptCore/bytecode/DFGExitProfile.h

    r208761 r223971  
    9898    unsigned hash() const
    9999    {
    100         return WTF::intHash(m_bytecodeOffset) + m_kind + m_jitType * 7;
     100        return WTF::intHash(m_bytecodeOffset) + m_kind + static_cast<std::underlying_type_t<ExitingJITType>>(m_jitType) * 7;
    101101    }
    102102   
Note: See TracChangeset for help on using the changeset viewer.