Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 5889e46fb35abfac796401aabe93fbb29c54ad89..ef7050c8afc675e6773736c229bfcf501269ebd3 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -2466,7 +2466,9 @@ void AstGraphBuilder::VisitCall(Call* expr) { |
const Operator* call = javascript()->CallFunction(args->length() + 2, flags, |
language_mode(), feedback); |
Node* value = ProcessArguments(call, args->length() + 2); |
- PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); |
+ environment()->Push(callee_value); |
+ PrepareFrameState(value, expr->ReturnId(), OutputFrameStateCombine::Push()); |
+ environment()->Drop(1); |
ast_context()->ProduceValue(value); |
} |