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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 V8_INLINE const AstRawString* EmptyIdentifierString(); | 542 V8_INLINE const AstRawString* EmptyIdentifierString(); |
543 | 543 |
544 // Odd-ball literal creators. | 544 // Odd-ball literal creators. |
545 Literal* GetLiteralTheHole(int position, AstNodeFactory* factory); | 545 Literal* GetLiteralTheHole(int position, AstNodeFactory* factory); |
546 | 546 |
547 // Producing data during the recursive descent. | 547 // Producing data during the recursive descent. |
548 const AstRawString* GetSymbol(Scanner* scanner); | 548 const AstRawString* GetSymbol(Scanner* scanner); |
549 const AstRawString* GetNextSymbol(Scanner* scanner); | 549 const AstRawString* GetNextSymbol(Scanner* scanner); |
550 const AstRawString* GetNumberAsSymbol(Scanner* scanner); | 550 const AstRawString* GetNumberAsSymbol(Scanner* scanner); |
551 | 551 |
552 Expression* ThisExpression(Scope* scope, AstNodeFactory* factory, | 552 Expression* ThisExpression(AstNodeFactory* factory, |
553 int pos = kNoSourcePosition); | 553 int pos = kNoSourcePosition); |
554 Expression* NewSuperPropertyReference(Scope* scope, AstNodeFactory* factory, | 554 Expression* NewSuperPropertyReference(AstNodeFactory* factory, int pos); |
555 int pos); | 555 Expression* NewSuperCallReference(AstNodeFactory* factory, int pos); |
556 Expression* NewSuperCallReference(Scope* scope, AstNodeFactory* factory, | 556 Expression* NewTargetExpression(AstNodeFactory* factory, int pos); |
557 int pos); | 557 Expression* FunctionSentExpression(AstNodeFactory* factory, int pos); |
558 Expression* NewTargetExpression(Scope* scope, AstNodeFactory* factory, | |
559 int pos); | |
560 Expression* FunctionSentExpression(Scope* scope, AstNodeFactory* factory, | |
561 int pos); | |
562 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, | 558 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, |
563 AstNodeFactory* factory); | 559 AstNodeFactory* factory); |
564 Expression* ExpressionFromIdentifier(const AstRawString* name, | 560 Expression* ExpressionFromIdentifier(const AstRawString* name, |
565 int start_position, int end_position, | 561 int start_position, int end_position, |
566 Scope* scope, AstNodeFactory* factory); | 562 AstNodeFactory* factory); |
567 Expression* ExpressionFromString(int pos, Scanner* scanner, | 563 Expression* ExpressionFromString(int pos, Scanner* scanner, |
568 AstNodeFactory* factory); | 564 AstNodeFactory* factory); |
569 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory, | 565 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory, |
570 int pos); | 566 int pos); |
571 ZoneList<v8::internal::Expression*>* NewExpressionList(int size, Zone* zone) { | 567 ZoneList<v8::internal::Expression*>* NewExpressionList(int size, Zone* zone) { |
572 return new(zone) ZoneList<v8::internal::Expression*>(size, zone); | 568 return new(zone) ZoneList<v8::internal::Expression*>(size, zone); |
573 } | 569 } |
574 ZoneList<ObjectLiteral::Property*>* NewPropertyList(int size, Zone* zone) { | 570 ZoneList<ObjectLiteral::Property*>* NewPropertyList(int size, Zone* zone) { |
575 return new(zone) ZoneList<ObjectLiteral::Property*>(size, zone); | 571 return new(zone) ZoneList<ObjectLiteral::Property*>(size, zone); |
576 } | 572 } |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1364 | 1360 |
1365 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1361 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1366 return parser_->ParseDoExpression(ok); | 1362 return parser_->ParseDoExpression(ok); |
1367 } | 1363 } |
1368 | 1364 |
1369 | 1365 |
1370 } // namespace internal | 1366 } // namespace internal |
1371 } // namespace v8 | 1367 } // namespace v8 |
1372 | 1368 |
1373 #endif // V8_PARSING_PARSER_H_ | 1369 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |