| 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_PARSER_H_ | 5 #ifndef V8_PARSER_H_ |
| 6 #define V8_PARSER_H_ | 6 #define V8_PARSER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast.h" | 9 #include "src/ast.h" |
| 10 #include "src/compiler.h" // TODO(titzer): remove this include dependency | 10 #include "src/compiler.h" // TODO(titzer): remove this include dependency |
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 const AstRawString* GetSymbol(Scanner* scanner); | 723 const AstRawString* GetSymbol(Scanner* scanner); |
| 724 const AstRawString* GetNextSymbol(Scanner* scanner); | 724 const AstRawString* GetNextSymbol(Scanner* scanner); |
| 725 const AstRawString* GetNumberAsSymbol(Scanner* scanner); | 725 const AstRawString* GetNumberAsSymbol(Scanner* scanner); |
| 726 | 726 |
| 727 Expression* ThisExpression(Scope* scope, AstNodeFactory* factory, | 727 Expression* ThisExpression(Scope* scope, AstNodeFactory* factory, |
| 728 int pos = RelocInfo::kNoPosition); | 728 int pos = RelocInfo::kNoPosition); |
| 729 Expression* SuperPropertyReference(Scope* scope, AstNodeFactory* factory, | 729 Expression* SuperPropertyReference(Scope* scope, AstNodeFactory* factory, |
| 730 int pos); | 730 int pos); |
| 731 Expression* SuperCallReference(Scope* scope, AstNodeFactory* factory, | 731 Expression* SuperCallReference(Scope* scope, AstNodeFactory* factory, |
| 732 int pos); | 732 int pos); |
| 733 Expression* NewTargetExpression(Scope* scope, AstNodeFactory* factory, |
| 734 int pos); |
| 733 Expression* DefaultConstructor(bool call_super, Scope* scope, int pos, | 735 Expression* DefaultConstructor(bool call_super, Scope* scope, int pos, |
| 734 int end_pos); | 736 int end_pos); |
| 735 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, | 737 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, |
| 736 AstNodeFactory* factory); | 738 AstNodeFactory* factory); |
| 737 Expression* ExpressionFromIdentifier(const AstRawString* name, | 739 Expression* ExpressionFromIdentifier(const AstRawString* name, |
| 738 int start_position, int end_position, | 740 int start_position, int end_position, |
| 739 Scope* scope, AstNodeFactory* factory); | 741 Scope* scope, AstNodeFactory* factory); |
| 740 Expression* ExpressionFromString(int pos, Scanner* scanner, | 742 Expression* ExpressionFromString(int pos, Scanner* scanner, |
| 741 AstNodeFactory* factory); | 743 AstNodeFactory* factory); |
| 742 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory); | 744 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory); |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 } | 1278 } |
| 1277 | 1279 |
| 1278 | 1280 |
| 1279 Expression* ParserTraits::SpreadCallNew( | 1281 Expression* ParserTraits::SpreadCallNew( |
| 1280 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) { | 1282 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) { |
| 1281 return parser_->SpreadCallNew(function, args, pos); | 1283 return parser_->SpreadCallNew(function, args, pos); |
| 1282 } | 1284 } |
| 1283 } } // namespace v8::internal | 1285 } } // namespace v8::internal |
| 1284 | 1286 |
| 1285 #endif // V8_PARSER_H_ | 1287 #endif // V8_PARSER_H_ |
| OLD | NEW |