| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 038d2beb1e6472e9b01cf843993ca1b592e7dfd1..daae4413c3360d57869a7826682bba9e9ddd0ec3 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -2951,8 +2951,9 @@ Node* AstGraphBuilder::BuildRestArgumentsArray(Variable* rest, int index) {
|
| if (rest == NULL) return NULL;
|
|
|
| DCHECK(index >= 0);
|
| - const Operator* op = javascript()->CallRuntime(Runtime::kNewRestParamSlow, 1);
|
| - Node* object = NewNode(op, jsgraph()->SmiConstant(index));
|
| + const Operator* op = javascript()->CallRuntime(Runtime::kNewRestParamSlow, 2);
|
| + Node* object = NewNode(op, jsgraph()->SmiConstant(index),
|
| + jsgraph()->SmiConstant(language_mode()));
|
|
|
| // Assign the object to the rest array
|
| DCHECK(rest->IsContextSlot() || rest->IsStackAllocated());
|
|
|