Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index db8db500369c6cc007bfae8433de0e6cc311c4fc..15ce908a1ce68d16870fb3ce040cfb2cd9c163bb 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -463,7 +463,8 @@ void JSGenericLowering::LowerJSCreateArguments(Node* node) { |
ReplaceWithRuntimeCall(node, Runtime::kNewStrictArguments_Generic); |
break; |
case CreateArgumentsParameters::kRestArray: |
- UNIMPLEMENTED(); |
+ node->InsertInput(zone(), 1, jsgraph()->Constant(p.start_index())); |
+ ReplaceWithRuntimeCall(node, Runtime::kNewRestArguments_Generic); |
break; |
} |
} |