Index: src/compiler/js-type-hint-lowering.cc |
diff --git a/src/compiler/js-type-hint-lowering.cc b/src/compiler/js-type-hint-lowering.cc |
index 433e51c61390d5b3dde6223fc480c528a248fd30..3398a330367691dde3892016fb21c72451a678fb 100644 |
--- a/src/compiler/js-type-hint-lowering.cc |
+++ b/src/compiler/js-type-hint-lowering.cc |
@@ -290,6 +290,20 @@ Reduction JSTypeHintLowering::ReduceCallOperation(const Operator* op, |
return Reduction(); |
} |
+Reduction JSTypeHintLowering::ReduceConstructOperation( |
+ const Operator* op, Node* const* args, int arg_count, Node* effect, |
+ Node* control, FeedbackSlot slot) const { |
+ DCHECK_EQ(IrOpcode::kJSConstruct, op->opcode()); |
+ DCHECK(!slot.IsInvalid()); |
+ CallICNexus nexus(feedback_vector(), slot); |
+ if (Node* node = TryBuildSoftDeopt( |
+ nexus, effect, control, |
+ DeoptimizeReason::kInsufficientTypeFeedbackForConstruct)) { |
+ return Reduction(node); |
+ } |
+ return Reduction(); |
+} |
+ |
Reduction JSTypeHintLowering::ReduceLoadNamedOperation( |
const Operator* op, Node* obj, Node* effect, Node* control, |
FeedbackSlot slot) const { |