Commit 92b4eadd authored by arv's avatar arv Committed by Commit bot

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}
parent 5c19e4f1
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment