Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 0d01a5a08b9b37fa495684003baec4d061e96bfc..1a9083813953eeb8a6d8309a0832fa75538628b5 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -2942,8 +2942,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()); |