[B3][Win64] Compile error.
authorpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Jan 2016 21:28:40 +0000 (21:28 +0000)
committerpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Jan 2016 21:28:40 +0000 (21:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=152984

Reviewed by Alex Christensen.

Windows does not have bzero, use memset instead.

* b3/air/AirIteratedRegisterCoalescing.cpp:

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/b3/air/AirIteratedRegisterCoalescing.cpp

index 5e31d84..973f5b4 100644 (file)
@@ -1,3 +1,14 @@
+2016-01-11  Per Arne Vollan  <peavo@outlook.com>
+
+        [B3][Win64] Compile error.
+        https://bugs.webkit.org/show_bug.cgi?id=152984
+
+        Reviewed by Alex Christensen.
+
+        Windows does not have bzero, use memset instead.
+
+        * b3/air/AirIteratedRegisterCoalescing.cpp:
+
 2016-01-11  Konstantin Tokarev  <annulen@yandex.ru>
 
         Fixed compilation of JavaScriptCore with GCC 4.8 on 32-bit platforms
index 6a0f09e..3b6886f 100644 (file)
@@ -247,7 +247,7 @@ private:
         for (unsigned i = 0; i < firstNonRegIndex; ++i)
             m_degrees[i] = std::numeric_limits<unsigned>::max();
 
-        bzero(m_degrees.data() + firstNonRegIndex, (tmpArraySize - firstNonRegIndex) * sizeof(unsigned));
+        memset(m_degrees.data() + firstNonRegIndex, 0, (tmpArraySize - firstNonRegIndex) * sizeof(unsigned));
     }
 
     void addEdgeDistinct(IndexType a, IndexType b)