| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_PARSING_PARSER_H_ | 5 #ifndef V8_PARSING_PARSER_H_ |
| 6 #define V8_PARSING_PARSER_H_ | 6 #define V8_PARSING_PARSER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 int pos); | 777 int pos); |
| 778 Expression* DefaultConstructor(bool call_super, Scope* scope, int pos, | 778 Expression* DefaultConstructor(bool call_super, Scope* scope, int pos, |
| 779 int end_pos, LanguageMode language_mode); | 779 int end_pos, LanguageMode language_mode); |
| 780 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, | 780 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, |
| 781 AstNodeFactory* factory); | 781 AstNodeFactory* factory); |
| 782 Expression* ExpressionFromIdentifier(const AstRawString* name, | 782 Expression* ExpressionFromIdentifier(const AstRawString* name, |
| 783 int start_position, int end_position, | 783 int start_position, int end_position, |
| 784 Scope* scope, AstNodeFactory* factory); | 784 Scope* scope, AstNodeFactory* factory); |
| 785 Expression* ExpressionFromString(int pos, Scanner* scanner, | 785 Expression* ExpressionFromString(int pos, Scanner* scanner, |
| 786 AstNodeFactory* factory); | 786 AstNodeFactory* factory); |
| 787 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory); | 787 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory, |
| 788 int pos); |
| 788 ZoneList<v8::internal::Expression*>* NewExpressionList(int size, Zone* zone) { | 789 ZoneList<v8::internal::Expression*>* NewExpressionList(int size, Zone* zone) { |
| 789 return new(zone) ZoneList<v8::internal::Expression*>(size, zone); | 790 return new(zone) ZoneList<v8::internal::Expression*>(size, zone); |
| 790 } | 791 } |
| 791 ZoneList<ObjectLiteral::Property*>* NewPropertyList(int size, Zone* zone) { | 792 ZoneList<ObjectLiteral::Property*>* NewPropertyList(int size, Zone* zone) { |
| 792 return new(zone) ZoneList<ObjectLiteral::Property*>(size, zone); | 793 return new(zone) ZoneList<ObjectLiteral::Property*>(size, zone); |
| 793 } | 794 } |
| 794 ZoneList<v8::internal::Statement*>* NewStatementList(int size, Zone* zone) { | 795 ZoneList<v8::internal::Statement*>* NewStatementList(int size, Zone* zone) { |
| 795 return new(zone) ZoneList<v8::internal::Statement*>(size, zone); | 796 return new(zone) ZoneList<v8::internal::Statement*>(size, zone); |
| 796 } | 797 } |
| 797 | 798 |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 | 1408 |
| 1408 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1409 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1409 return parser_->ParseDoExpression(ok); | 1410 return parser_->ParseDoExpression(ok); |
| 1410 } | 1411 } |
| 1411 | 1412 |
| 1412 | 1413 |
| 1413 } // namespace internal | 1414 } // namespace internal |
| 1414 } // namespace v8 | 1415 } // namespace v8 |
| 1415 | 1416 |
| 1416 #endif // V8_PARSING_PARSER_H_ | 1417 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |