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

Unified Diff: src/parsing/preparser.h

Issue 2569983003: PreParsing inner funcs: Remove nonsense code from PreParser. (Closed)
Patch Set: more tests Created 4 years 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 | « no previous file | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index e99dcbed7f984cfd2e60293c06f622aaddad8a89..026ea069895118363d6b8fbf77e846cbec05988b 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -156,10 +156,9 @@ class PreParserExpression {
return PreParserExpression(TypeField::encode(kExpression));
}
- static PreParserExpression Assignment(ZoneList<VariableProxy*>* variables) {
+ static PreParserExpression Assignment() {
return PreParserExpression(TypeField::encode(kExpression) |
- ExpressionTypeField::encode(kAssignment),
- variables);
+ ExpressionTypeField::encode(kAssignment));
}
static PreParserExpression ObjectLiteral(
@@ -618,8 +617,7 @@ class PreParserFactory {
PreParserExpression left,
PreParserExpression right,
int pos) {
- // For tracking variables for parameters with a default value.
- return PreParserExpression::Assignment(left.variables_);
+ return PreParserExpression::Assignment();
}
PreParserExpression NewYield(PreParserExpression generator_object,
PreParserExpression expression, int pos,
« no previous file with comments | « no previous file | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698