Title: [204373] trunk/Source/_javascript_Core
- Revision
- 204373
- Author
- [email protected]
- Date
- 2016-08-11 05:02:42 -0700 (Thu, 11 Aug 2016)
Log Message
[Win] Warning fix.
https://bugs.webkit.org/show_bug.cgi?id=160734
Reviewed by Sam Weinig.
Add static cast from int to uint32_t.
* bytecode/ArithProfile.h:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (204372 => 204373)
--- trunk/Source/_javascript_Core/ChangeLog 2016-08-11 11:26:52 UTC (rev 204372)
+++ trunk/Source/_javascript_Core/ChangeLog 2016-08-11 12:02:42 UTC (rev 204373)
@@ -1,3 +1,14 @@
+2016-08-11 Per Arne Vollan <[email protected]>
+
+ [Win] Warning fix.
+ https://bugs.webkit.org/show_bug.cgi?id=160734
+
+ Reviewed by Sam Weinig.
+
+ Add static cast from int to uint32_t.
+
+ * bytecode/ArithProfile.h:
+
2016-08-10 Michael Saboff <[email protected]>
Baseline GetByVal and PutByVal for cache ID stubs need to handle exceptions
Modified: trunk/Source/_javascript_Core/bytecode/ArithProfile.h (204372 => 204373)
--- trunk/Source/_javascript_Core/bytecode/ArithProfile.h 2016-08-11 11:26:52 UTC (rev 204372)
+++ trunk/Source/_javascript_Core/bytecode/ArithProfile.h 2016-08-11 12:02:42 UTC (rev 204373)
@@ -75,8 +75,8 @@
static const uint32_t lhsObservedTypeShift = rhsObservedTypeShift + ObservedType::numBitsNeeded;
static_assert(ObservedType::numBitsNeeded == 3, "We make a hard assumption about that here.");
- static const uint32_t clearRhsObservedTypeBitMask = ~((1 << rhsObservedTypeShift) | (1 << (rhsObservedTypeShift + 1)) | (1 << (rhsObservedTypeShift + 2)));
- static const uint32_t clearLhsObservedTypeBitMask = ~((1 << lhsObservedTypeShift) | (1 << (lhsObservedTypeShift + 1)) | (1 << (lhsObservedTypeShift + 2)));
+ static const uint32_t clearRhsObservedTypeBitMask = static_cast<uint32_t>(~((1 << rhsObservedTypeShift) | (1 << (rhsObservedTypeShift + 1)) | (1 << (rhsObservedTypeShift + 2))));
+ static const uint32_t clearLhsObservedTypeBitMask = static_cast<uint32_t>(~((1 << lhsObservedTypeShift) | (1 << (lhsObservedTypeShift + 1)) | (1 << (lhsObservedTypeShift + 2))));
static const uint32_t resultTypeMask = (1 << ResultType::numBitsNeeded) - 1;
static const uint32_t observedTypeMask = (1 << ObservedType::numBitsNeeded) - 1;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes