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

Unified Diff: src/preparser.h

Issue 952283003: No need for special treatment of super in PreParserExpression (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index 41b3a31f0e1169068eaf2968fe55b67fc3904ee4..ee7c98bd436685b214886763a8f14d24ba7d02c0 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -820,11 +820,6 @@ class PreParserExpression {
ExpressionTypeField::encode(kThisExpression));
}
- static PreParserExpression Super() {
- return PreParserExpression(TypeField::encode(kExpression) |
- ExpressionTypeField::encode(kSuperExpression));
- }
-
static PreParserExpression ThisProperty() {
return PreParserExpression(
TypeField::encode(kExpression) |
@@ -957,7 +952,6 @@ class PreParserExpression {
kThisPropertyExpression,
kPropertyExpression,
kCallExpression,
- kSuperExpression,
kNoTemplateTagExpression
};
@@ -1399,7 +1393,7 @@ class PreParserTraits {
static PreParserExpression SuperReference(Scope* scope,
PreParserFactory* factory) {
- return PreParserExpression::Super();
+ return PreParserExpression::Default();
}
static PreParserExpression DefaultConstructor(bool call_super, Scope* scope,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698