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

Side by Side Diff: src/parser.h

Issue 168583008: (Pre)Parser: Simplify NewExpression handling (fixed). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: one more comment 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* 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); 643 Expression* ParseMemberExpressionContinuation(Expression* expression,
644 Expression* ParseMemberWithNewPrefixesExpression(PositionStack* stack, 644 bool* ok);
645 bool* ok);
646 Expression* ParseArrayLiteral(bool* ok); 645 Expression* ParseArrayLiteral(bool* ok);
647 Expression* ParseObjectLiteral(bool* ok); 646 Expression* ParseObjectLiteral(bool* ok);
648 647
649 // Initialize the components of a for-in / for-of statement. 648 // Initialize the components of a for-in / for-of statement.
650 void InitializeForEachStatement(ForEachStatement* stmt, 649 void InitializeForEachStatement(ForEachStatement* stmt,
651 Expression* each, 650 Expression* each,
652 Expression* subject, 651 Expression* subject,
653 Statement* body); 652 Statement* body);
654 653
655 ZoneList<Expression*>* ParseArguments(bool* ok); 654 ZoneList<Expression*>* ParseArguments(bool* ok);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 private: 784 private:
786 static const int kLiteralTypeSlot = 0; 785 static const int kLiteralTypeSlot = 0;
787 static const int kElementsSlot = 1; 786 static const int kElementsSlot = 1;
788 787
789 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 788 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
790 }; 789 };
791 790
792 } } // namespace v8::internal 791 } } // namespace v8::internal
793 792
794 #endif // V8_PARSER_H_ 793 #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