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

Side by Side Diff: src/parser.h

Issue 166943002: (Pre)Parser: Simplify NewExpression handling. (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
« no previous file with comments | « no previous file | src/parser.cc » ('j') | src/parser.cc » ('J')
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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 Block* ParseScopedBlock(ZoneStringList* labels, bool* ok); 631 Block* ParseScopedBlock(ZoneStringList* labels, bool* ok);
632 632
633 Expression* ParseExpression(bool accept_IN, bool* ok); 633 Expression* ParseExpression(bool accept_IN, bool* ok);
634 Expression* ParseAssignmentExpression(bool accept_IN, bool* ok); 634 Expression* ParseAssignmentExpression(bool accept_IN, bool* ok);
635 Expression* ParseYieldExpression(bool* ok); 635 Expression* ParseYieldExpression(bool* ok);
636 Expression* ParseConditionalExpression(bool accept_IN, bool* ok); 636 Expression* ParseConditionalExpression(bool accept_IN, bool* ok);
637 Expression* ParseBinaryExpression(int prec, bool accept_IN, bool* ok); 637 Expression* ParseBinaryExpression(int prec, bool accept_IN, bool* ok);
638 Expression* ParseUnaryExpression(bool* ok); 638 Expression* ParseUnaryExpression(bool* ok);
639 Expression* ParsePostfixExpression(bool* ok); 639 Expression* ParsePostfixExpression(bool* ok);
640 Expression* ParseLeftHandSideExpression(bool* ok); 640 Expression* ParseLeftHandSideExpression(bool* ok);
641 Expression* ParseNewExpression(bool* ok); 641 Expression* ParseMemberWithNewPrefixesExpression(bool* ok);
642 Expression* ParseMemberExpression(bool* ok); 642 Expression* ParseMemberExpression(bool* ok);
643 Expression* ParseNewPrefix(PositionStack* stack, bool* ok);
644 Expression* ParseMemberWithNewPrefixesExpression(PositionStack* stack,
645 bool* ok);
646 Expression* ParseArrayLiteral(bool* ok); 643 Expression* ParseArrayLiteral(bool* ok);
647 Expression* ParseObjectLiteral(bool* ok); 644 Expression* ParseObjectLiteral(bool* ok);
648 645
649 // Initialize the components of a for-in / for-of statement. 646 // Initialize the components of a for-in / for-of statement.
650 void InitializeForEachStatement(ForEachStatement* stmt, 647 void InitializeForEachStatement(ForEachStatement* stmt,
651 Expression* each, 648 Expression* each,
652 Expression* subject, 649 Expression* subject,
653 Statement* body); 650 Statement* body);
654 651
655 ZoneList<Expression*>* ParseArguments(bool* ok); 652 ZoneList<Expression*>* ParseArguments(bool* ok);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 private: 782 private:
786 static const int kLiteralTypeSlot = 0; 783 static const int kLiteralTypeSlot = 0;
787 static const int kElementsSlot = 1; 784 static const int kElementsSlot = 1;
788 785
789 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 786 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
790 }; 787 };
791 788
792 } } // namespace v8::internal 789 } } // namespace v8::internal
793 790
794 #endif // V8_PARSER_H_ 791 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698