Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 5c91b95153d6448fda9816f1340546aac6952186..c42d26c0629b631f38ba4d7b75bc47a964cc9975 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1488,6 +1488,8 @@ void AstGraphBuilder::VisitCountOperation(CountOperation* expr) { |
// Convert old value into a number. |
old_value = NewNode(javascript()->ToNumber(), old_value); |
+ PrepareFrameState(old_value, expr->ToNumberId(), |
+ OutputFrameStateCombine::Push()); |
// Save result for postfix expressions at correct stack depth. |
if (is_postfix) environment()->Poke(stack_depth, old_value); |