Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index dfa44eba365410a560154fd34fa1663996eae6d8..9637781e641ada2503b12d9cd3a8f6006eed187e 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -456,6 +456,9 @@ class ParserTraits { |
MessageTemplate::Template message, |
const AstRawString* arg, int pos); |
+ void FinalizeIteratorUse(Variable* completion, Expression* condition, |
+ Variable* iter, Block* iterator_use, Block* result); |
+ |
Statement* FinalizeForOfStatement(ForOfStatement* loop, int pos); |
// Reporting errors. |
@@ -696,6 +699,13 @@ class Parser : public ParserBase<ParserTraits> { |
private: |
friend class ParserTraits; |
+ // Runtime encoding of different completion modes. |
+ enum CompletionKind { |
+ kNormalCompletion, |
+ kThrowCompletion, |
+ kAbruptCompletion |
+ }; |
+ |
// Limit the allowed number of local variables in a function. The hard limit |
// is that offsets computed by FullCodeGenerator::StackOperand and similar |
// functions are ints, and they should not overflow. In addition, accessing |