Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 95e190ed1c3711035843abe52ba5d4b59ef7b062..331aac8f5fa3306415572f51b78b81198367fc17 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7830,7 +7830,10 @@ bool HOptimizedGraphBuilder::TryInlineBuiltinMethodCall( |
elements_kind, STORE, |
NEVER_RETURN_HOLE, |
STORE_AND_GROW_NO_TRANSITION); |
+ |
+ if (!ast_context()->IsEffect()) Push(new_size); |
Add<HSimulate>(expr->id(), REMOVABLE_SIMULATE); |
+ if (!ast_context()->IsEffect()) Drop(1); |
} |
ast_context()->ReturnValue(new_size); |