Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index e7fbabae1d51e489709c29a9e13f03f51dcd9024..dd408dc9b12b74d8d6591a87bab078463f71f7e9 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5008,7 +5008,7 @@ void HOptimizedGraphBuilder::VisitSwitchStatement(SwitchStatement* stmt) { |
label_value, |
Token::EQ_STRICT); |
compare_->set_observed_input_representation( |
- Representation::Integer32(), Representation::Integer32()); |
+ Representation::Smi(), Representation::Smi()); |
compare = compare_; |
} else { |
compare = new(zone()) HStringCompareAndBranch(context, tag_value, |
@@ -5373,7 +5373,7 @@ void HOptimizedGraphBuilder::VisitForInStatement(ForInStatement* stmt) { |
HCompareIDAndBranch* compare_index = |
new(zone()) HCompareIDAndBranch(index, limit, Token::LT); |
compare_index->set_observed_input_representation( |
- Representation::Integer32(), Representation::Integer32()); |
+ Representation::Smi(), Representation::Smi()); |
HBasicBlock* loop_body = graph()->CreateBasicBlock(); |
HBasicBlock* loop_successor = graph()->CreateBasicBlock(); |