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

Side by Side Diff: src/parser.h

Issue 164183006: Revert "(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') | 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 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* ParseMemberWithNewPrefixesExpression(bool* ok); 641 Expression* ParseNewExpression(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);
643 Expression* ParseArrayLiteral(bool* ok); 646 Expression* ParseArrayLiteral(bool* ok);
644 Expression* ParseObjectLiteral(bool* ok); 647 Expression* ParseObjectLiteral(bool* ok);
645 648
646 // Initialize the components of a for-in / for-of statement. 649 // Initialize the components of a for-in / for-of statement.
647 void InitializeForEachStatement(ForEachStatement* stmt, 650 void InitializeForEachStatement(ForEachStatement* stmt,
648 Expression* each, 651 Expression* each,
649 Expression* subject, 652 Expression* subject,
650 Statement* body); 653 Statement* body);
651 654
652 ZoneList<Expression*>* ParseArguments(bool* ok); 655 ZoneList<Expression*>* ParseArguments(bool* ok);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 private: 785 private:
783 static const int kLiteralTypeSlot = 0; 786 static const int kLiteralTypeSlot = 0;
784 static const int kElementsSlot = 1; 787 static const int kElementsSlot = 1;
785 788
786 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 789 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
787 }; 790 };
788 791
789 } } // namespace v8::internal 792 } } // namespace v8::internal
790 793
791 #endif // V8_PARSER_H_ 794 #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