Index: src/compiler/raw-machine-assembler.cc |
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc |
index f437922fa6aa3363b1b908d2ada508624c5ae002..71c79eb9da6e768243a3a1f9f453411edb3846a0 100644 |
--- a/src/compiler/raw-machine-assembler.cc |
+++ b/src/compiler/raw-machine-assembler.cc |
@@ -25,7 +25,8 @@ RawMachineAssembler::RawMachineAssembler(Isolate* isolate, Graph* graph, |
parameters_(nullptr), |
current_block_(schedule()->start()) { |
int param_count = static_cast<int>(parameter_count()); |
- Node* s = graph->NewNode(common_.Start(param_count)); |
+ // Add an extra input node for the JSFunction parameter to the start node. |
+ Node* s = graph->NewNode(common_.Start(param_count + 1)); |
graph->SetStart(s); |
if (parameter_count() == 0) return; |
parameters_ = zone()->NewArray<Node*>(param_count); |