Reviewers: Dmitry Lomov (chromium),
Message:
PTAL
Description:
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
[email protected]
Please review this at https://codereview.chromium.org/952283003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+1, -7 lines):
M src/preparser.h
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,
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.