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

Side by Side Diff: src/parser.h

Issue 198053002: Move ParseConditionalExpression to ParserBase. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 years, 9 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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 // Temporary glue; these functions will move to ParserBase. 550 // Temporary glue; these functions will move to ParserBase.
551 Expression* ParseV8Intrinsic(bool* ok); 551 Expression* ParseV8Intrinsic(bool* ok);
552 FunctionLiteral* ParseFunctionLiteral( 552 FunctionLiteral* ParseFunctionLiteral(
553 Handle<String> name, 553 Handle<String> name,
554 Scanner::Location function_name_location, 554 Scanner::Location function_name_location,
555 bool name_is_strict_reserved, 555 bool name_is_strict_reserved,
556 bool is_generator, 556 bool is_generator,
557 int function_token_position, 557 int function_token_position,
558 FunctionLiteral::FunctionType type, 558 FunctionLiteral::FunctionType type,
559 bool* ok); 559 bool* ok);
560 Expression* ParseConditionalExpression(bool accept_IN, bool* ok); 560 Expression* ParseBinaryExpression(int prec, bool accept_IN, bool* ok);
561 561
562 private: 562 private:
563 Parser* parser_; 563 Parser* parser_;
564 }; 564 };
565 565
566 566
567 class Parser : public ParserBase<ParserTraits> { 567 class Parser : public ParserBase<ParserTraits> {
568 public: 568 public:
569 explicit Parser(CompilationInfo* info); 569 explicit Parser(CompilationInfo* info);
570 ~Parser() { 570 ~Parser() {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 WhileStatement* ParseWhileStatement(ZoneStringList* labels, bool* ok); 693 WhileStatement* ParseWhileStatement(ZoneStringList* labels, bool* ok);
694 Statement* ParseForStatement(ZoneStringList* labels, bool* ok); 694 Statement* ParseForStatement(ZoneStringList* labels, bool* ok);
695 Statement* ParseThrowStatement(bool* ok); 695 Statement* ParseThrowStatement(bool* ok);
696 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value); 696 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value);
697 TryStatement* ParseTryStatement(bool* ok); 697 TryStatement* ParseTryStatement(bool* ok);
698 DebuggerStatement* ParseDebuggerStatement(bool* ok); 698 DebuggerStatement* ParseDebuggerStatement(bool* ok);
699 699
700 // Support for hamony block scoped bindings. 700 // Support for hamony block scoped bindings.
701 Block* ParseScopedBlock(ZoneStringList* labels, bool* ok); 701 Block* ParseScopedBlock(ZoneStringList* labels, bool* ok);
702 702
703 Expression* ParseConditionalExpression(bool accept_IN, bool* ok);
704 Expression* ParseBinaryExpression(int prec, bool accept_IN, bool* ok); 703 Expression* ParseBinaryExpression(int prec, bool accept_IN, bool* ok);
705 Expression* ParseUnaryExpression(bool* ok); 704 Expression* ParseUnaryExpression(bool* ok);
706 Expression* ParsePostfixExpression(bool* ok); 705 Expression* ParsePostfixExpression(bool* ok);
707 Expression* ParseLeftHandSideExpression(bool* ok); 706 Expression* ParseLeftHandSideExpression(bool* ok);
708 Expression* ParseMemberWithNewPrefixesExpression(bool* ok); 707 Expression* ParseMemberWithNewPrefixesExpression(bool* ok);
709 Expression* ParseMemberExpression(bool* ok); 708 Expression* ParseMemberExpression(bool* ok);
710 Expression* ParseMemberExpressionContinuation(Expression* expression, 709 Expression* ParseMemberExpressionContinuation(Expression* expression,
711 bool* ok); 710 bool* ok);
712 Expression* ParseObjectLiteral(bool* ok); 711 Expression* ParseObjectLiteral(bool* ok);
713 712
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 private: 826 private:
828 static const int kLiteralTypeSlot = 0; 827 static const int kLiteralTypeSlot = 0;
829 static const int kElementsSlot = 1; 828 static const int kElementsSlot = 1;
830 829
831 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 830 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
832 }; 831 };
833 832
834 } } // namespace v8::internal 833 } } // namespace v8::internal
835 834
836 #endif // V8_PARSER_H_ 835 #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