Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 1069684dbf3a972ed6cbc60e238531458aa3d0a1..f7391dd33d0842e8eaab1121df1708597ca246b5 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1348,12 +1348,13 @@ void HBinaryOperation::PrintDataTo(StringStream* stream) { |
Range* HBitwise::InferRange(Zone* zone) { |
if (op() == Token::BIT_XOR) return HValue::InferRange(zone); |
+ const int32_t kDefaultMask = static_cast<int32_t>(0xffffffff); |
int32_t left_mask = (left()->range() != NULL) |
? left()->range()->Mask() |
- : 0xffffffff; |
+ : kDefaultMask; |
int32_t right_mask = (right()->range() != NULL) |
? right()->range()->Mask() |
- : 0xffffffff; |
+ : kDefaultMask; |
int32_t result_mask = (op() == Token::BIT_AND) |
? left_mask & right_mask |
: left_mask | right_mask; |