Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: src/parsing/parser.h

Issue 2235423003: [parser] improve inferred function names for async arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add braces around single-line if stmt Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/parsing/func-name-inferrer.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/parsing/func-name-inferrer.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698