Index: src/parsing/preparser.h |
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h |
index 0bac1277b048ff62fcf17febeecd0f7d7e77d32a..6c05e9e1e08bd6f40c6169b74e5b8f7346eb5cb3 100644 |
--- a/src/parsing/preparser.h |
+++ b/src/parsing/preparser.h |
@@ -150,7 +150,7 @@ class PreParserExpression { |
static PreParserExpression BinaryOperation(PreParserExpression left, |
Token::Value op, |
PreParserExpression right) { |
- return PreParserExpression(TypeField::encode(kBinaryOperationExpression)); |
+ return PreParserExpression(TypeField::encode(kExpression)); |
} |
static PreParserExpression Assignment() { |
@@ -284,11 +284,6 @@ class PreParserExpression { |
ExpressionTypeField::decode(code_) == kCallEvalExpression); |
} |
- bool IsDirectEvalCall() const { |
- return TypeField::decode(code_) == kExpression && |
- ExpressionTypeField::decode(code_) == kCallEvalExpression; |
- } |
- |
bool IsSuperCallReference() const { |
return TypeField::decode(code_) == kExpression && |
ExpressionTypeField::decode(code_) == kSuperCallReference; |
@@ -313,10 +308,6 @@ class PreParserExpression { |
PreParserExpression AsFunctionLiteral() { return *this; } |
- bool IsBinaryOperation() const { |
- return TypeField::decode(code_) == kBinaryOperationExpression; |
- } |
- |
// Dummy implementation for making expression->somefunc() work in both Parser |
// and PreParser. |
PreParserExpression* operator->() { return this; } |
@@ -337,7 +328,6 @@ class PreParserExpression { |
kExpression, |
kIdentifierExpression, |
kStringLiteralExpression, |
- kBinaryOperationExpression, |
kSpreadExpression, |
kObjectLiteralExpression, |
kArrayLiteralExpression |
@@ -1149,10 +1139,6 @@ class PreParser : public ParserBase<PreParser> { |
return identifier.IsConstructor(); |
} |
- V8_INLINE bool IsDirectEvalCall(PreParserExpression expression) const { |
- return expression.IsDirectEvalCall(); |
- } |
- |
V8_INLINE static bool IsBoilerplateProperty(PreParserExpression property) { |
// PreParser doesn't count boilerplate properties. |
return false; |