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

Side by Side Diff: src/preparser.h

Issue 152813005: Make strict more error messages about "eval" and "arguments" less specific. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: . 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
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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 Expression ParsePrimaryExpression(bool* ok); 633 Expression ParsePrimaryExpression(bool* ok);
634 Expression ParseArrayLiteral(bool* ok); 634 Expression ParseArrayLiteral(bool* ok);
635 Expression ParseObjectLiteral(bool* ok); 635 Expression ParseObjectLiteral(bool* ok);
636 Expression ParseRegExpLiteral(bool seen_equal, bool* ok); 636 Expression ParseRegExpLiteral(bool seen_equal, bool* ok);
637 Expression ParseV8Intrinsic(bool* ok); 637 Expression ParseV8Intrinsic(bool* ok);
638 638
639 Arguments ParseArguments(bool* ok); 639 Arguments ParseArguments(bool* ok);
640 Expression ParseFunctionLiteral(bool is_generator, bool* ok); 640 Expression ParseFunctionLiteral(bool is_generator, bool* ok);
641 void ParseLazyFunctionLiteralBody(bool* ok); 641 void ParseLazyFunctionLiteralBody(bool* ok);
642 642
643 Identifier ParseIdentifier(bool* ok); 643 Identifier ParseIdentifier(bool allow_eval_arguments, bool* ok);
644 Identifier ParseIdentifierName(bool* ok); 644 Identifier ParseIdentifierName(bool* ok);
645 Identifier ParseIdentifierNameOrGetOrSet(bool* is_get, 645 Identifier ParseIdentifierNameOrGetOrSet(bool* is_get,
646 bool* is_set, 646 bool* is_set,
647 bool* ok); 647 bool* ok);
648 648
649 // Logs the currently parsed literal as a symbol in the preparser data. 649 // Logs the currently parsed literal as a symbol in the preparser data.
650 void LogSymbol(); 650 void LogSymbol();
651 // Log the currently parsed identifier. 651 // Log the currently parsed identifier.
652 Identifier GetIdentifierSymbol(); 652 Identifier GetIdentifierSymbol();
653 // Log the currently parsed string literal. 653 // Log the currently parsed string literal.
(...skipping 29 matching lines...) Expand all
683 ParserRecorder* log_; 683 ParserRecorder* log_;
684 Scope* scope_; 684 Scope* scope_;
685 Scanner::Location strict_mode_violation_location_; 685 Scanner::Location strict_mode_violation_location_;
686 const char* strict_mode_violation_type_; 686 const char* strict_mode_violation_type_;
687 bool parenthesized_function_; 687 bool parenthesized_function_;
688 }; 688 };
689 689
690 } } // v8::internal 690 } } // v8::internal
691 691
692 #endif // V8_PREPARSER_H 692 #endif // V8_PREPARSER_H
OLDNEW
« src/parser.cc ('K') | « src/parser.cc ('k') | src/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698