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

Unified Diff: src/parsing/parser.cc

Issue 2893313002: [inspector] removed call break location from for-of loop (Closed)
Patch Set: removed each_keyword_pos Created 3 years, 7 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.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 1e381e43d731b9aa8b528a27128da5d6da6d7342..cd46f4c93683d6da3580de881bfe7558b6a6edba 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -1899,7 +1899,7 @@ Expression* Parser::BuildIteratorNextResult(Expression* iterator,
ZoneList<Expression*>* next_arguments =
new (zone()) ZoneList<Expression*>(0, zone());
Expression* next_call =
- factory()->NewCall(next_property, next_arguments, pos);
+ factory()->NewCall(next_property, next_arguments, kNoSourcePosition);
if (type == IteratorType::kAsync) {
next_call = RewriteAwaitExpression(next_call, pos);
}
@@ -1931,13 +1931,12 @@ Expression* Parser::BuildIteratorNextResult(Expression* iterator,
Statement* Parser::InitializeForEachStatement(ForEachStatement* stmt,
Expression* each,
Expression* subject,
- Statement* body,
- int each_keyword_pos) {
+ Statement* body) {
ForOfStatement* for_of = stmt->AsForOfStatement();
if (for_of != NULL) {
const bool finalize = true;
return InitializeForOfStatement(for_of, each, subject, body, finalize,
- IteratorType::kNormal, each_keyword_pos);
+ IteratorType::kNormal, each->position());
} else {
if (each->IsArrayLiteral() || each->IsObjectLiteral()) {
Variable* temp = NewTemporary(ast_value_factory()->empty_string());
« no previous file with comments | « src/parsing/parser.h ('k') | src/parsing/parser-base.h » ('j') | src/parsing/parser-base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698