OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 Expression ParseNewExpression(bool* ok); | 609 Expression ParseNewExpression(bool* ok); |
610 Expression ParseMemberExpression(bool* ok); | 610 Expression ParseMemberExpression(bool* ok); |
611 Expression ParseMemberWithNewPrefixesExpression(unsigned new_count, bool* ok); | 611 Expression ParseMemberWithNewPrefixesExpression(unsigned new_count, bool* ok); |
612 Expression ParsePrimaryExpression(bool* ok); | 612 Expression ParsePrimaryExpression(bool* ok); |
613 Expression ParseArrayLiteral(bool* ok); | 613 Expression ParseArrayLiteral(bool* ok); |
614 Expression ParseObjectLiteral(bool* ok); | 614 Expression ParseObjectLiteral(bool* ok); |
615 Expression ParseRegExpLiteral(bool seen_equal, bool* ok); | 615 Expression ParseRegExpLiteral(bool seen_equal, bool* ok); |
616 Expression ParseV8Intrinsic(bool* ok); | 616 Expression ParseV8Intrinsic(bool* ok); |
617 | 617 |
618 Arguments ParseArguments(bool* ok); | 618 Arguments ParseArguments(bool* ok); |
619 Expression ParseFunctionLiteral(bool is_generator, bool* ok); | 619 Expression ParseFunctionLiteral( |
| 620 Identifier name, |
| 621 Scanner::Location function_name_location, |
| 622 bool name_is_strict_reserved, |
| 623 bool is_generator, |
| 624 bool* ok); |
620 void ParseLazyFunctionLiteralBody(bool* ok); | 625 void ParseLazyFunctionLiteralBody(bool* ok); |
621 | 626 |
622 Identifier ParseIdentifier(AllowEvalOrArgumentsAsIdentifier, bool* ok); | 627 Identifier ParseIdentifier(AllowEvalOrArgumentsAsIdentifier, bool* ok); |
| 628 Identifier ParseIdentifierOrStrictReservedWord(bool* is_strict_reserved, |
| 629 bool* ok); |
623 Identifier ParseIdentifierName(bool* ok); | 630 Identifier ParseIdentifierName(bool* ok); |
624 Identifier ParseIdentifierNameOrGetOrSet(bool* is_get, | 631 Identifier ParseIdentifierNameOrGetOrSet(bool* is_get, |
625 bool* is_set, | 632 bool* is_set, |
626 bool* ok); | 633 bool* ok); |
627 | 634 |
628 // Logs the currently parsed literal as a symbol in the preparser data. | 635 // Logs the currently parsed literal as a symbol in the preparser data. |
629 void LogSymbol(); | 636 void LogSymbol(); |
630 // Log the currently parsed identifier. | 637 // Log the currently parsed identifier. |
631 Identifier GetIdentifierSymbol(); | 638 Identifier GetIdentifierSymbol(); |
632 // Log the currently parsed string literal. | 639 // Log the currently parsed string literal. |
(...skipping 28 matching lines...) Expand all Loading... |
661 ParserRecorder* log_; | 668 ParserRecorder* log_; |
662 Scope* scope_; | 669 Scope* scope_; |
663 Scanner::Location strict_mode_violation_location_; | 670 Scanner::Location strict_mode_violation_location_; |
664 const char* strict_mode_violation_type_; | 671 const char* strict_mode_violation_type_; |
665 bool parenthesized_function_; | 672 bool parenthesized_function_; |
666 }; | 673 }; |
667 | 674 |
668 } } // v8::internal | 675 } } // v8::internal |
669 | 676 |
670 #endif // V8_PREPARSER_H | 677 #endif // V8_PREPARSER_H |
OLD | NEW |