No need for special treatment of super in PreParserExpression

It turned out that we didn't need to treat super in a special way
in the pre parser expressions.

BUG=None
LOG=N
R=dslomov@chromium.org

Review URL: https://codereview.chromium.org/952283003

Cr-Commit-Position: refs/heads/master@{#26865}
This commit is contained in:
arv 2015-02-25 13:47:44 -08:00 committed by Commit bot
parent 5c19e4f1cb
commit 92b4eaddbc

View File

@ -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,