Fix implicit cast of enum, which seems to break the windows build of unified sources.
authorkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Oct 2017 19:06:42 +0000 (19:06 +0000)
committerkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Oct 2017 19:06:42 +0000 (19:06 +0000)
https://bugs.webkit.org/show_bug.cgi?id=178822

Reviewed by Saam Barati.

* bytecode/DFGExitProfile.h:
(JSC::DFG::FrequentExitSite::hash const):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223971 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/DFGExitProfile.h

index 5e57503..35a8f20 100644 (file)
@@ -1,3 +1,13 @@
+2017-10-25  Keith Miller  <keith_miller@apple.com>
+
+        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):
+
 2017-10-24  Michael Saboff  <msaboff@apple.com>
 
         Allow OjbC Weak References when building TestAPI
index 337e3ec..ce55749 100644 (file)
@@ -97,7 +97,7 @@ public:
     
     unsigned hash() const
     {
-        return WTF::intHash(m_bytecodeOffset) + m_kind + m_jitType * 7;
+        return WTF::intHash(m_bytecodeOffset) + m_kind + static_cast<std::underlying_type_t<ExitingJITType>>(m_jitType) * 7;
     }
     
     unsigned bytecodeOffset() const { return m_bytecodeOffset; }