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

Unified Diff: src/parsing/parser.cc

Issue 1969443002: Version 5.0.71.48 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
Patch Set: Created 4 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
« no previous file with comments | « include/v8-version.h ('k') | test/mjsunit/es6/regress/regress-594084.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 8005479a32670b05c34eef744975b0d47d86af17..968e8ed4ff5ef8521e38abe94791e73e0e184237 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -4536,7 +4536,7 @@ class InitializerRewriter : public AstExpressionVisitor {
scope_(scope) {}
private:
- void VisitExpression(Expression* expr) {
+ void VisitExpression(Expression* expr) override {
RewritableExpression* to_rewrite = expr->AsRewritableExpression();
if (to_rewrite == nullptr || to_rewrite->is_rewritten()) return;
@@ -4544,6 +4544,10 @@ class InitializerRewriter : public AstExpressionVisitor {
scope_);
}
+ // Code in function literals does not need to be eagerly rewritten, it will be
+ // rewritten when scheduled.
+ void VisitFunctionLiteral(FunctionLiteral* expr) override {}
+
private:
Parser* parser_;
Scope* scope_;
« no previous file with comments | « include/v8-version.h ('k') | test/mjsunit/es6/regress/regress-594084.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698