Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index c7185c98f2ca2696a90278ca8efa3318ccdc5352..f56f362f3a63b286333d3d93ba0a3629c2ed7564 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -5444,7 +5444,10 @@ void HOptimizedGraphBuilder::BuildForInBody(ForInStatement* stmt, |
set_current_block(body_exit); |
HValue* current_index = Pop(); |
- Push(AddUncasted<HAdd>(current_index, graph()->GetConstant1())); |
+ HValue* increment = |
+ AddUncasted<HAdd>(current_index, graph()->GetConstant1()); |
+ increment->ClearFlag(HValue::kCanOverflow); |
+ Push(increment); |
body_exit = current_block(); |
} |