R=titzer@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
23707055
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16861
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
// 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();