OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_PARSING_PREPARSER_H | 5 #ifndef V8_PARSING_PREPARSER_H |
6 #define V8_PARSING_PREPARSER_H | 6 #define V8_PARSING_PREPARSER_H |
7 | 7 |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/parsing/parser-base.h" | 9 #include "src/parsing/parser-base.h" |
10 | 10 |
(...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1376 V8_INLINE PreParserExpression FunctionSentExpression(int pos) { | 1376 V8_INLINE PreParserExpression FunctionSentExpression(int pos) { |
1377 return PreParserExpression::Default(); | 1377 return PreParserExpression::Default(); |
1378 } | 1378 } |
1379 | 1379 |
1380 V8_INLINE PreParserExpression ExpressionFromLiteral(Token::Value token, | 1380 V8_INLINE PreParserExpression ExpressionFromLiteral(Token::Value token, |
1381 int pos) { | 1381 int pos) { |
1382 return PreParserExpression::Default(); | 1382 return PreParserExpression::Default(); |
1383 } | 1383 } |
1384 | 1384 |
1385 PreParserExpression ExpressionFromIdentifier( | 1385 PreParserExpression ExpressionFromIdentifier( |
1386 PreParserIdentifier name, int start_position, int end_position, | 1386 PreParserIdentifier name, int start_position, |
1387 InferName infer = InferName::kYes); | 1387 InferName infer = InferName::kYes); |
1388 | 1388 |
1389 V8_INLINE PreParserExpression ExpressionFromString(int pos) { | 1389 V8_INLINE PreParserExpression ExpressionFromString(int pos) { |
1390 if (scanner()->UnescapedLiteralMatches("use strict", 10)) { | 1390 if (scanner()->UnescapedLiteralMatches("use strict", 10)) { |
1391 return PreParserExpression::UseStrictStringLiteral(); | 1391 return PreParserExpression::UseStrictStringLiteral(); |
1392 } | 1392 } |
1393 return PreParserExpression::StringLiteral(); | 1393 return PreParserExpression::StringLiteral(); |
1394 } | 1394 } |
1395 | 1395 |
1396 V8_INLINE PreParserExpressionList NewExpressionList(int size) const { | 1396 V8_INLINE PreParserExpressionList NewExpressionList(int size) const { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1540 function_state_->NextMaterializedLiteralIndex(); | 1540 function_state_->NextMaterializedLiteralIndex(); |
1541 function_state_->NextMaterializedLiteralIndex(); | 1541 function_state_->NextMaterializedLiteralIndex(); |
1542 } | 1542 } |
1543 return EmptyExpression(); | 1543 return EmptyExpression(); |
1544 } | 1544 } |
1545 | 1545 |
1546 } // namespace internal | 1546 } // namespace internal |
1547 } // namespace v8 | 1547 } // namespace v8 |
1548 | 1548 |
1549 #endif // V8_PARSING_PREPARSER_H | 1549 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |