Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2119)

Unified Diff: src/parsing/parser.h

Issue 1695583003: [WIP] for-of iterator finalization (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index 87b6a910a458bb231687a0a4fb268d0194f99865..b4e9dba2d45b325f7b87ef02f58ee13c37fc449d 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -461,6 +461,8 @@ class ParserTraits {
MessageTemplate::Template message,
const AstRawString* arg, int pos);
+ void FinalizeForOfStatement(ForOfStatement* loop, int pos);
+
// Reporting errors.
void ReportMessageAt(Scanner::Location source_location,
MessageTemplate::Template message,
@@ -663,7 +665,9 @@ class ParserTraits {
Parser* parser_;
void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator,
- Maybe<Variable*> input, Maybe<Variable*> output);
+ Maybe<Variable*> input, Variable* output);
+ void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator,
+ Variable* body_threw);
};

Powered by Google App Engine
This is Rietveld 408576698