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

Side by Side Diff: src/parser.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 | « no previous file | src/parser.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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 Expression* ParseRegExpLiteral(bool seen_equal, bool* ok); 642 Expression* ParseRegExpLiteral(bool seen_equal, bool* ok);
643 643
644 // Initialize the components of a for-in / for-of statement. 644 // Initialize the components of a for-in / for-of statement.
645 void InitializeForEachStatement(ForEachStatement* stmt, 645 void InitializeForEachStatement(ForEachStatement* stmt,
646 Expression* each, 646 Expression* each,
647 Expression* subject, 647 Expression* subject,
648 Statement* body); 648 Statement* body);
649 649
650 ZoneList<Expression*>* ParseArguments(bool* ok); 650 ZoneList<Expression*>* ParseArguments(bool* ok);
651 FunctionLiteral* ParseFunctionLiteral( 651 FunctionLiteral* ParseFunctionLiteral(
652 Handle<String> var_name, 652 Handle<String> name,
653 Scanner::Location function_name_location, 653 Scanner::Location function_name_location,
654 bool name_is_reserved, 654 bool name_is_strict_reserved,
655 bool is_generator, 655 bool is_generator,
656 int function_token_position, 656 int function_token_position,
657 FunctionLiteral::FunctionType type, 657 FunctionLiteral::FunctionType type,
658 bool* ok); 658 bool* ok);
659 659
660 // Magical syntax support. 660 // Magical syntax support.
661 Expression* ParseV8Intrinsic(bool* ok); 661 Expression* ParseV8Intrinsic(bool* ok);
662 662
663 bool is_generator() const { return current_function_state_->is_generator(); } 663 bool is_generator() const { return current_function_state_->is_generator(); }
664 664
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 private: 816 private:
817 static const int kLiteralTypeSlot = 0; 817 static const int kLiteralTypeSlot = 0;
818 static const int kElementsSlot = 1; 818 static const int kElementsSlot = 1;
819 819
820 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 820 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
821 }; 821 };
822 822
823 } } // namespace v8::internal 823 } } // namespace v8::internal
824 824
825 #endif // V8_PARSER_H_ 825 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698