Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 56c9c0bdd9a931a1431eb792ecd39847e4e1c931..2ff370b1c1972cb0cc1b57f6de5b4016d0ea1806 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -652,6 +652,20 @@ void JSGenericLowering::LowerJSCall(Node* node) { |
NodeProperties::ChangeOp(node, common()->Call(desc)); |
} |
+void JSGenericLowering::LowerJSCallWithArrayLike(Node* node) { |
+ Callable callable = CodeFactory::CallWithArrayLike(isolate()); |
+ CallDescriptor::Flags flags = FrameStateFlagForCall(node); |
+ CallDescriptor* desc = Linkage::GetStubCallDescriptor( |
+ isolate(), zone(), callable.descriptor(), 1, flags); |
+ Node* stub_code = jsgraph()->HeapConstant(callable.code()); |
+ Node* receiver = node->InputAt(1); |
+ Node* arguments_list = node->InputAt(2); |
+ node->InsertInput(zone(), 0, stub_code); |
+ node->ReplaceInput(3, receiver); |
+ node->ReplaceInput(2, arguments_list); |
+ NodeProperties::ChangeOp(node, common()->Call(desc)); |
+} |
+ |
void JSGenericLowering::LowerJSCallWithSpread(Node* node) { |
SpreadWithArityParameter const& p = SpreadWithArityParameterOf(node->op()); |
int const arg_count = static_cast<int>(p.arity() - 2); |