Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index 3c22580c2c7e2b36d851444304435e6f433d4a17..bff5221563d18770268bd96db9b9197fce1992bb 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -2593,7 +2593,7 @@ static BinaryOpIC::TypeInfo TypeInfoFromValue(Handle<Object> value, |
v8::internal::TypeInfo type = v8::internal::TypeInfo::FromValue(value); |
if (type.IsSmi()) return BinaryOpIC::SMI; |
if (type.IsInteger32()) { |
- if (kSmiValueSize == 32) return BinaryOpIC::SMI; |
+ if (SmiValuesAre32Bits()) return BinaryOpIC::SMI; |
return BinaryOpIC::INT32; |
} |
if (type.IsNumber()) return BinaryOpIC::NUMBER; |
@@ -2605,7 +2605,7 @@ static BinaryOpIC::TypeInfo TypeInfoFromValue(Handle<Object> value, |
op == Token::SAR || |
op == Token::SHL || |
op == Token::SHR) { |
- if (kSmiValueSize == 32) return BinaryOpIC::SMI; |
+ if (SmiValuesAre32Bits()) return BinaryOpIC::SMI; |
return BinaryOpIC::INT32; |
} |
return BinaryOpIC::ODDBALL; |
@@ -2683,7 +2683,7 @@ RUNTIME_FUNCTION(MaybeObject*, BinaryOp_Patch) { |
if (op == Token::DIV || |
op == Token::MUL || |
op == Token::SHR || |
- kSmiValueSize == 32) { |
+ SmiValuesAre32Bits()) { |
// Arithmetic on two Smi inputs has yielded a heap number. |
// That is the only way to get here from the Smi stub. |
// With 32-bit Smis, all overflows give heap numbers, but with |