| Index: src/ast/ast.h
|
| diff --git a/src/ast/ast.h b/src/ast/ast.h
|
| index c3790b34b377fe448289a171d066207cdb8e998e..95bc3c02c4ccdacd8c8a8f7a4d67a899f37a00bb 100644
|
| --- a/src/ast/ast.h
|
| +++ b/src/ast/ast.h
|
| @@ -2414,9 +2414,17 @@ class Assignment final : public Expression {
|
| }
|
|
|
| void AssignFeedbackSlots(FeedbackVectorSpec* spec, LanguageMode language_mode,
|
| - FeedbackSlotCache* cache);
|
| + FeedbackSlotCache* cache,
|
| + bool collect_type_profile = false);
|
| FeedbackSlot AssignmentSlot() const { return slot_; }
|
|
|
| + FeedbackSlot TypeProfileSlot() const {
|
| + DCHECK(HasTypeProfileSlot());
|
| + return type_profile_slot_;
|
| + }
|
| +
|
| + bool HasTypeProfileSlot() const { return !type_profile_slot_.IsInvalid(); }
|
| +
|
| private:
|
| friend class AstNodeFactory;
|
|
|
| @@ -2438,6 +2446,8 @@ class Assignment final : public Expression {
|
| Expression* value_;
|
| BinaryOperation* binary_operation_;
|
| SmallMapList receiver_types_;
|
| +
|
| + FeedbackSlot type_profile_slot_;
|
| };
|
|
|
|
|
|
|