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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 // Odd-ball literal creators. | 714 // Odd-ball literal creators. |
715 Literal* GetLiteralTheHole(int position, AstNodeFactory* factory); | 715 Literal* GetLiteralTheHole(int position, AstNodeFactory* factory); |
716 | 716 |
717 // Producing data during the recursive descent. | 717 // Producing data during the recursive descent. |
718 const AstRawString* GetSymbol(Scanner* scanner); | 718 const AstRawString* GetSymbol(Scanner* scanner); |
719 const AstRawString* GetNextSymbol(Scanner* scanner); | 719 const AstRawString* GetNextSymbol(Scanner* scanner); |
720 const AstRawString* GetNumberAsSymbol(Scanner* scanner); | 720 const AstRawString* GetNumberAsSymbol(Scanner* scanner); |
721 | 721 |
722 Expression* ThisExpression(Scope* scope, AstNodeFactory* factory, | 722 Expression* ThisExpression(Scope* scope, AstNodeFactory* factory, |
723 int pos = RelocInfo::kNoPosition); | 723 int pos = RelocInfo::kNoPosition); |
724 Expression* SuperReference(Scope* scope, AstNodeFactory* factory, | 724 Expression* SuperReference(Scope* scope, AstNodeFactory* factory, int pos); |
725 int pos = RelocInfo::kNoPosition); | |
726 Expression* DefaultConstructor(bool call_super, Scope* scope, int pos, | 725 Expression* DefaultConstructor(bool call_super, Scope* scope, int pos, |
727 int end_pos); | 726 int end_pos); |
728 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, | 727 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, |
729 AstNodeFactory* factory); | 728 AstNodeFactory* factory); |
730 Expression* ExpressionFromIdentifier(const AstRawString* name, | 729 Expression* ExpressionFromIdentifier(const AstRawString* name, |
731 int start_position, int end_position, | 730 int start_position, int end_position, |
732 Scope* scope, AstNodeFactory* factory); | 731 Scope* scope, AstNodeFactory* factory); |
733 Expression* ExpressionFromString(int pos, Scanner* scanner, | 732 Expression* ExpressionFromString(int pos, Scanner* scanner, |
734 AstNodeFactory* factory); | 733 AstNodeFactory* factory); |
735 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory); | 734 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory); |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 } | 1178 } |
1180 | 1179 |
1181 | 1180 |
1182 Expression* ParserTraits::SpreadCallNew( | 1181 Expression* ParserTraits::SpreadCallNew( |
1183 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) { | 1182 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) { |
1184 return parser_->SpreadCallNew(function, args, pos); | 1183 return parser_->SpreadCallNew(function, args, pos); |
1185 } | 1184 } |
1186 } } // namespace v8::internal | 1185 } } // namespace v8::internal |
1187 | 1186 |
1188 #endif // V8_PARSER_H_ | 1187 #endif // V8_PARSER_H_ |
OLD | NEW |