Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 161a33a10d4ac8663c2e57e81b99a737b8468cfc..c9a03574a4cfa79aff08dc3699dcafaabfd514f8 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -3777,7 +3777,8 @@ Node* AstGraphBuilder::BuildReturn(Node* return_value) { |
return_value = |
NewNode(javascript()->CallRuntime(Runtime::kTraceExit), return_value); |
} |
- Node* control = NewNode(common()->Return(), return_value); |
+ Node* pop_node = jsgraph()->Int32Constant(0); |
+ Node* control = NewNode(common()->Return(), pop_node, return_value); |
UpdateControlDependencyToLeaveFunction(control); |
return control; |
} |