| Index: src/compiler/js-generic-lowering.cc
|
| diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
|
| index 8c363d3e8b6e5c07bc03a8bdcf18d1c23a9fa93f..82e5e6fd691d35d3505a54f269a338116152f47b 100644
|
| --- a/src/compiler/js-generic-lowering.cc
|
| +++ b/src/compiler/js-generic-lowering.cc
|
| @@ -456,7 +456,12 @@ void JSGenericLowering::LowerJSLoadDynamic(Node* node) {
|
| }
|
|
|
|
|
| -void JSGenericLowering::LowerJSCreate(Node* node) { UNIMPLEMENTED(); }
|
| +void JSGenericLowering::LowerJSCreate(Node* node) {
|
| + // TODO(4544): The duplication of the constructor function is only valid if
|
| + // actual constructor and original constructor coincide. Fix this!
|
| + node->InsertInput(zone(), 1, node->InputAt(0)); // Duplicate constructor.
|
| + ReplaceWithRuntimeCall(node, Runtime::kNewObject);
|
| +}
|
|
|
|
|
| void JSGenericLowering::LowerJSCreateArguments(Node* node) {
|
|
|