[B3][Win64] Compile and warning fixes.
authorpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Jan 2016 21:49:12 +0000 (21:49 +0000)
committerpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Jan 2016 21:49:12 +0000 (21:49 +0000)
https://bugs.webkit.org/show_bug.cgi?id=153234

Reviewed by Alex Christensen.

The size of 'long' is 4 bytes on Win64. We can use 'long long' instead,
when we want the size to be 8 bytes.

* b3/B3LowerMacrosAfterOptimizations.cpp:
* b3/B3ReduceStrength.cpp:

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/b3/B3LowerMacrosAfterOptimizations.cpp
Source/JavaScriptCore/b3/B3ReduceStrength.cpp

index ba03e6e..8d8bb17 100644 (file)
@@ -1,3 +1,16 @@
+2016-01-19  Per Arne Vollan  <peavo@outlook.com>
+
+        [B3][Win64] Compile and warning fixes.
+        https://bugs.webkit.org/show_bug.cgi?id=153234
+
+        Reviewed by Alex Christensen.
+
+        The size of 'long' is 4 bytes on Win64. We can use 'long long' instead,
+        when we want the size to be 8 bytes.
+
+        * b3/B3LowerMacrosAfterOptimizations.cpp:
+        * b3/B3ReduceStrength.cpp:
+
 2016-01-19  Csaba Osztrogon√°c  <ossy@webkit.org>
 
         [cmake] Fix the B3 build after r195159
index b53fd6a..5b2d90b 100644 (file)
@@ -78,7 +78,7 @@ private:
 
                 Value* mask = nullptr;
                 if (m_value->type() == Double)
-                    mask = m_insertionSet.insert<ConstDoubleValue>(m_index, m_origin, bitwise_cast<double>(~(1l << 63)));
+                    mask = m_insertionSet.insert<ConstDoubleValue>(m_index, m_origin, bitwise_cast<double>(~(1ll << 63)));
                 else if (m_value->type() == Float)
                     mask = m_insertionSet.insert<ConstFloatValue>(m_index, m_origin, bitwise_cast<float>(~(1 << 31)));
                 else
index b8a3bc2..50f45f4 100644 (file)
@@ -766,7 +766,7 @@ private:
             if (m_value->child(0)->opcode() == BitwiseCast) {
                 Value* mask;
                 if (m_value->type() == Double)
-                    mask = m_insertionSet.insert<Const64Value>(m_index, m_value->origin(), ~(1l << 63));
+                    mask = m_insertionSet.insert<Const64Value>(m_index, m_value->origin(), ~(1ll << 63));
                 else
                     mask = m_insertionSet.insert<Const32Value>(m_index, m_value->origin(), ~(1l << 31));