Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 6738ddc165164fc2b193d4b12e15267accb1e5ef..dd65e2416dcec5b40dc7a71754c5740519a3022f 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -474,6 +474,12 @@ void JSGenericLowering::LowerJSCallConstruct(Node* node) { |
NodeProperties::ChangeOp(node, common()->Call(desc)); |
} |
+void JSGenericLowering::LowerJSCallConstructWithSpread(Node* node) { |
+ CallConstructWithSpreadParameters const& p = |
+ CallConstructWithSpreadParametersOf(node->op()); |
+ ReplaceWithRuntimeCall(node, Runtime::kNewWithSpread, |
+ static_cast<int>(p.arity())); |
+} |
void JSGenericLowering::LowerJSCallFunction(Node* node) { |
CallFunctionParameters const& p = CallFunctionParametersOf(node->op()); |