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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 const AstRawString* GetNumberAsSymbol(Scanner* scanner); | 550 const AstRawString* GetNumberAsSymbol(Scanner* scanner); |
551 | 551 |
552 Expression* ThisExpression(int pos); | 552 Expression* ThisExpression(int pos); |
553 Expression* NewSuperPropertyReference(AstNodeFactory* factory, int pos); | 553 Expression* NewSuperPropertyReference(AstNodeFactory* factory, int pos); |
554 Expression* NewSuperCallReference(AstNodeFactory* factory, int pos); | 554 Expression* NewSuperCallReference(AstNodeFactory* factory, int pos); |
555 Expression* NewTargetExpression(int pos); | 555 Expression* NewTargetExpression(int pos); |
556 Expression* FunctionSentExpression(AstNodeFactory* factory, int pos); | 556 Expression* FunctionSentExpression(AstNodeFactory* factory, int pos); |
557 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, | 557 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, |
558 AstNodeFactory* factory); | 558 AstNodeFactory* factory); |
559 Expression* ExpressionFromIdentifier(const AstRawString* name, | 559 Expression* ExpressionFromIdentifier(const AstRawString* name, |
560 int start_position, int end_position); | 560 int start_position, int end_position, |
| 561 InferName = InferName::Yes); |
561 Expression* ExpressionFromString(int pos, Scanner* scanner, | 562 Expression* ExpressionFromString(int pos, Scanner* scanner, |
562 AstNodeFactory* factory); | 563 AstNodeFactory* factory); |
563 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory, | 564 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory, |
564 int pos); | 565 int pos); |
565 ZoneList<v8::internal::Expression*>* NewExpressionList(int size, Zone* zone) { | 566 ZoneList<v8::internal::Expression*>* NewExpressionList(int size, Zone* zone) { |
566 return new(zone) ZoneList<v8::internal::Expression*>(size, zone); | 567 return new(zone) ZoneList<v8::internal::Expression*>(size, zone); |
567 } | 568 } |
568 ZoneList<ObjectLiteral::Property*>* NewPropertyList(int size, Zone* zone) { | 569 ZoneList<ObjectLiteral::Property*>* NewPropertyList(int size, Zone* zone) { |
569 return new(zone) ZoneList<ObjectLiteral::Property*>(size, zone); | 570 return new(zone) ZoneList<ObjectLiteral::Property*>(size, zone); |
570 } | 571 } |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 | 1375 |
1375 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1376 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1376 return parser_->ParseDoExpression(ok); | 1377 return parser_->ParseDoExpression(ok); |
1377 } | 1378 } |
1378 | 1379 |
1379 | 1380 |
1380 } // namespace internal | 1381 } // namespace internal |
1381 } // namespace v8 | 1382 } // namespace v8 |
1382 | 1383 |
1383 #endif // V8_PARSING_PARSER_H_ | 1384 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |