Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: src/preparser.h

Issue 140183005: Unify function name validation in Parser and PreParser. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/parser.cc ('k') | src/preparser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698