| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 824a3cd9dbf850cfa6e25ec255b81d9301d6d573..50a10a491753831c3157ec7eb4b65b8f53830f57 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -6108,7 +6108,8 @@ void HOptimizedGraphBuilder::HandlePolymorphicCallNamed(
|
| // Because the deopt may be the only path in the polymorphic call, make sure
|
| // that the environment stack matches the depth on deopt that it otherwise
|
| // would have had after a successful call.
|
| - Drop(argument_count - (ast_context()->IsEffect() ? 0 : 1));
|
| + Drop(argument_count);
|
| + if (!ast_context()->IsEffect()) Push(graph()->GetConstant0());
|
| FinishExitWithHardDeoptimization("Unknown map in polymorphic call", join);
|
| } else {
|
| HValue* context = environment()->context();
|
|
|