| Index: src/compiler/js-intrinsic-lowering.cc
|
| diff --git a/src/compiler/js-intrinsic-lowering.cc b/src/compiler/js-intrinsic-lowering.cc
|
| index 7738e3a031d0aa31e8d0d73ae986875cee21beb2..7cf61a18aa67d7a10d79fe46a0d41253fb28f3b5 100644
|
| --- a/src/compiler/js-intrinsic-lowering.cc
|
| +++ b/src/compiler/js-intrinsic-lowering.cc
|
| @@ -111,6 +111,8 @@ Reduction JSIntrinsicLowering::Reduce(Node* node) {
|
| return ReduceCall(node);
|
| case Runtime::kInlineTailCall:
|
| return ReduceTailCall(node);
|
| + case Runtime::kInlineGetSuperConstructor:
|
| + return ReduceGetSuperConstructor(node);
|
| default:
|
| break;
|
| }
|
| @@ -614,6 +616,18 @@ Reduction JSIntrinsicLowering::ReduceTailCall(Node* node) {
|
| }
|
|
|
|
|
| +Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) {
|
| + Node* active_function = NodeProperties::GetValueInput(node, 0);
|
| + Node* effect = NodeProperties::GetEffectInput(node);
|
| + Node* control = NodeProperties::GetControlInput(node);
|
| + Node* active_function_map = effect =
|
| + graph()->NewNode(simplified()->LoadField(AccessBuilder::ForMap()),
|
| + active_function, effect, control);
|
| + return Change(node, simplified()->LoadField(AccessBuilder::ForMapPrototype()),
|
| + active_function_map, effect, control);
|
| +}
|
| +
|
| +
|
| Reduction JSIntrinsicLowering::Change(Node* node, const Operator* op, Node* a,
|
| Node* b) {
|
| RelaxControls(node);
|
|
|