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

Unified Diff: src/preparser.cc

Issue 873823003: Move object literal checking into checker classes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix assert Created 5 years, 11 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 | « src/preparser.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.cc
diff --git a/src/preparser.cc b/src/preparser.cc
index 4d621c2dd9004c0a2b3434a8be2e561b42cfc1ee..bcf5df053083795cb81c52219cd286bc9899d6b1 100644
--- a/src/preparser.cc
+++ b/src/preparser.cc
@@ -983,6 +983,7 @@ PreParserExpression PreParser::ParseClassLiteral(
ParseLeftHandSideExpression(CHECK_OK);
}
+ ClassLiteralChecker checker(this);
bool has_seen_constructor = false;
Expect(Token::LBRACE, CHECK_OK);
@@ -992,7 +993,7 @@ PreParserExpression PreParser::ParseClassLiteral(
const bool is_static = false;
bool is_computed_name = false; // Classes do not care about computed
// property names here.
- ParsePropertyDefinition(NULL, in_class, is_static, &is_computed_name,
+ ParsePropertyDefinition(&checker, in_class, is_static, &is_computed_name,
&has_seen_constructor, CHECK_OK);
}
« no previous file with comments | « src/preparser.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698