| Index: src/ast/ast.h
|
| diff --git a/src/ast/ast.h b/src/ast/ast.h
|
| index 3bc5690f033a764018c4c3b824526fe61bb8cb16..c28247049db645a13a662fe622da34dbc8b66779 100644
|
| --- a/src/ast/ast.h
|
| +++ b/src/ast/ast.h
|
| @@ -831,6 +831,10 @@ class ForEachStatement : public IterationStatement {
|
| FeedbackVectorSlotCache* cache) override;
|
| FeedbackVectorSlot EachFeedbackSlot() const { return each_slot_; }
|
|
|
| + static const char* VisitModeString(VisitMode mode) {
|
| + return mode == ITERATE ? "for-of" : "for-in";
|
| + }
|
| +
|
| protected:
|
| ForEachStatement(Zone* zone, ZoneList<const AstRawString*>* labels, int pos)
|
| : IterationStatement(zone, labels, pos), each_(NULL), subject_(NULL) {}
|
|
|