Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 55d19e05b264910d35bbc57202d55e7e46be7aa2..d324a43b1de83623160c6658ed0304b8c6327155 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -1675,7 +1675,7 @@ HValue* HGraphBuilder::BuildNumberToString(HValue* object, Type* type) { |
} |
if_objectissmi.Else(); |
{ |
- if (type->Is(Type::Smi())) { |
+ if (type->Is(Type::SignedSmall())) { |
if_objectissmi.Deopt("Expected smi"); |
} else { |
// Check if the object is a heap number. |
@@ -9013,7 +9013,7 @@ bool CanBeZero(HValue* right) { |
HValue* HGraphBuilder::EnforceNumberType(HValue* number, |
Type* expected) { |
- if (expected->Is(Type::Smi())) { |
+ if (expected->Is(Type::SignedSmall())) { |
return AddUncasted<HForceRepresentation>(number, Representation::Smi()); |
} |
if (expected->Is(Type::Signed32())) { |
@@ -9056,7 +9056,7 @@ HValue* HGraphBuilder::TruncateToNumber(HValue* value, Type** expected) { |
if (expected_obj->Is(Type::Undefined(zone()))) { |
// This is already done by HChange. |
- *expected = Type::Union(expected_number, Type::Double(zone()), zone()); |
+ *expected = Type::Union(expected_number, Type::Float(zone()), zone()); |
return value; |
} |