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/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/base/hashmap.h" | 10 #include "src/base/hashmap.h" |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 | 622 |
623 // Helper functions for recursive descent. | 623 // Helper functions for recursive descent. |
624 bool IsEval(PreParserIdentifier identifier) const { | 624 bool IsEval(PreParserIdentifier identifier) const { |
625 return identifier.IsEval(); | 625 return identifier.IsEval(); |
626 } | 626 } |
627 | 627 |
628 bool IsArguments(PreParserIdentifier identifier) const { | 628 bool IsArguments(PreParserIdentifier identifier) const { |
629 return identifier.IsArguments(); | 629 return identifier.IsArguments(); |
630 } | 630 } |
631 | 631 |
632 bool IsAwait(PreParserIdentifier identifier) const { | |
633 return identifier.IsAwait(); | |
634 } | |
635 | |
636 bool IsEvalOrArguments(PreParserIdentifier identifier) const { | 632 bool IsEvalOrArguments(PreParserIdentifier identifier) const { |
637 return identifier.IsEvalOrArguments(); | 633 return identifier.IsEvalOrArguments(); |
638 } | 634 } |
639 | 635 |
640 bool IsUndefined(PreParserIdentifier identifier) const { | 636 bool IsUndefined(PreParserIdentifier identifier) const { |
641 return identifier.IsUndefined(); | 637 return identifier.IsUndefined(); |
642 } | 638 } |
643 | 639 |
644 bool IsPrototype(PreParserIdentifier identifier) const { | 640 bool IsPrototype(PreParserIdentifier identifier) const { |
645 return identifier.IsPrototype(); | 641 return identifier.IsPrototype(); |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1251 pre_parser_->function_state_->NextMaterializedLiteralIndex(); | 1247 pre_parser_->function_state_->NextMaterializedLiteralIndex(); |
1252 pre_parser_->function_state_->NextMaterializedLiteralIndex(); | 1248 pre_parser_->function_state_->NextMaterializedLiteralIndex(); |
1253 } | 1249 } |
1254 return EmptyExpression(); | 1250 return EmptyExpression(); |
1255 } | 1251 } |
1256 | 1252 |
1257 } // namespace internal | 1253 } // namespace internal |
1258 } // namespace v8 | 1254 } // namespace v8 |
1259 | 1255 |
1260 #endif // V8_PARSING_PREPARSER_H | 1256 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |