Index: src/compiler/js-builtin-reducer.cc |
diff --git a/src/compiler/js-builtin-reducer.cc b/src/compiler/js-builtin-reducer.cc |
index 4c15ee907887a508dd58627d4188c080bff3f181..5dfdbc289264b31baca52cf8e240e07141ae7dc1 100644 |
--- a/src/compiler/js-builtin-reducer.cc |
+++ b/src/compiler/js-builtin-reducer.cc |
@@ -313,6 +313,10 @@ Reduction JSBuiltinReducer::ReduceArrayPush(Node* node) { |
AccessBuilder::ForFixedArrayElement(receiver_map->elements_kind())), |
elements, length, value, effect, control); |
+ // Return the new length of the {receiver}. |
+ value = graph()->NewNode(simplified()->NumberAdd(), length, |
+ jsgraph()->OneConstant()); |
+ |
ReplaceWithValue(node, value, effect, control); |
return Replace(value); |
} |