Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 6f7b374a7599eae1e15008d684b5c0b6fd0f02af..b00bcec339f02a6b9c9ecb01daee5e1d7bff8bd5 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1762,8 +1762,9 @@ void BytecodeGraphBuilder::VisitStackCheck() { |
void BytecodeGraphBuilder::VisitReturn() { |
BuildLoopExitsForFunctionExit(); |
+ Node* pop_node = jsgraph()->Int32Constant(0); |
Node* control = |
- NewNode(common()->Return(), environment()->LookupAccumulator()); |
+ NewNode(common()->Return(), pop_node, environment()->LookupAccumulator()); |
MergeControlToLeaveFunction(control); |
} |