| Index: src/compiler/js-generic-lowering.cc
|
| diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
|
| index 7e0d2cac4478c5c2ab91988ac61c43b6e76943b1..2b0163c588d72bfbc8eaaa5ecaa4b624a392575d 100644
|
| --- a/src/compiler/js-generic-lowering.cc
|
| +++ b/src/compiler/js-generic-lowering.cc
|
| @@ -530,13 +530,13 @@ void JSGenericLowering::LowerJSCallConstruct(Node* node) {
|
| CallDescriptor* desc =
|
| Linkage::GetStubCallDescriptor(isolate(), zone(), d, arity - 1, flags);
|
| Node* stub_code = jsgraph()->HeapConstant(stub.GetCode());
|
| - Node* actual_construct = NodeProperties::GetValueInput(node, 0);
|
| - Node* original_construct = NodeProperties::GetValueInput(node, arity - 1);
|
| - node->RemoveInput(arity - 1); // Drop original constructor.
|
| + Node* target = NodeProperties::GetValueInput(node, 0);
|
| + Node* new_target = NodeProperties::GetValueInput(node, arity - 1);
|
| + node->RemoveInput(arity - 1); // Drop new target.
|
| node->InsertInput(zone(), 0, stub_code);
|
| node->InsertInput(zone(), 1, jsgraph()->Int32Constant(arity - 2));
|
| - node->InsertInput(zone(), 2, actual_construct);
|
| - node->InsertInput(zone(), 3, original_construct);
|
| + node->InsertInput(zone(), 2, target);
|
| + node->InsertInput(zone(), 3, new_target);
|
| node->InsertInput(zone(), 4, jsgraph()->UndefinedConstant());
|
| NodeProperties::ChangeOp(node, common()->Call(desc));
|
| }
|
|
|