Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 8b5e20d9e8cb5190c759fe66f655b90a8858e8f0..7360c56425c27598fd1848c9a552ef48a730e4c5 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -142,10 +142,8 @@ PreParserExpression PreParserTraits::ParseFunctionLiteral( |
} |
-PreParserExpression PreParserTraits::ParseBinaryExpression(int prec, |
- bool accept_IN, |
- bool* ok) { |
- return pre_parser_->ParseBinaryExpression(prec, accept_IN, ok); |
+PreParserExpression PreParserTraits::ParseUnaryExpression(bool* ok) { |
+ return pre_parser_->ParseUnaryExpression(ok); |
} |
@@ -840,23 +838,6 @@ PreParser::Statement PreParser::ParseDebuggerStatement(bool* ok) { |
#undef DUMMY |
-// Precedence >= 4 |
-PreParser::Expression PreParser::ParseBinaryExpression(int prec, |
- bool accept_IN, |
- bool* ok) { |
- Expression result = ParseUnaryExpression(CHECK_OK); |
- for (int prec1 = Precedence(peek(), accept_IN); prec1 >= prec; prec1--) { |
- // prec1 >= 4 |
- while (Precedence(peek(), accept_IN) == prec1) { |
- Next(); |
- ParseBinaryExpression(prec1 + 1, accept_IN, CHECK_OK); |
- result = Expression::Default(); |
- } |
- } |
- return result; |
-} |
- |
- |
PreParser::Expression PreParser::ParseUnaryExpression(bool* ok) { |
// UnaryExpression :: |
// PostfixExpression |