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

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

Issue 1921083002: [es6] Fix tail call elimination in single-expression arrow functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 4 years, 7 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 | « no previous file | 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 V8_INLINE ZoneList<Statement*>* ParseEagerFunctionBody( 565 V8_INLINE ZoneList<Statement*>* ParseEagerFunctionBody(
566 const AstRawString* name, int pos, 566 const AstRawString* name, int pos,
567 const ParserFormalParameters& parameters, FunctionKind kind, 567 const ParserFormalParameters& parameters, FunctionKind kind,
568 FunctionLiteral::FunctionType function_type, bool* ok); 568 FunctionLiteral::FunctionType function_type, bool* ok);
569 569
570 ClassLiteral* ParseClassLiteral(const AstRawString* name, 570 ClassLiteral* ParseClassLiteral(const AstRawString* name,
571 Scanner::Location class_name_location, 571 Scanner::Location class_name_location,
572 bool name_is_strict_reserved, int pos, 572 bool name_is_strict_reserved, int pos,
573 bool* ok); 573 bool* ok);
574 574
575 V8_INLINE void MarkTailPosition(Expression* expression);
576
575 V8_INLINE void CheckConflictingVarDeclarations(v8::internal::Scope* scope, 577 V8_INLINE void CheckConflictingVarDeclarations(v8::internal::Scope* scope,
576 bool* ok); 578 bool* ok);
577 579
578 class TemplateLiteral : public ZoneObject { 580 class TemplateLiteral : public ZoneObject {
579 public: 581 public:
580 TemplateLiteral(Zone* zone, int pos) 582 TemplateLiteral(Zone* zone, int pos)
581 : cooked_(8, zone), raw_(8, zone), expressions_(8, zone), pos_(pos) {} 583 : cooked_(8, zone), raw_(8, zone), expressions_(8, zone), pos_(pos) {}
582 584
583 const ZoneList<Expression*>* cooked() const { return &cooked_; } 585 const ZoneList<Expression*>* cooked() const { return &cooked_; }
584 const ZoneList<Expression*>* raw() const { return &raw_; } 586 const ZoneList<Expression*>* raw() const { return &raw_; }
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 1249
1248 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1250 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1249 return parser_->ParseDoExpression(ok); 1251 return parser_->ParseDoExpression(ok);
1250 } 1252 }
1251 1253
1252 1254
1253 } // namespace internal 1255 } // namespace internal
1254 } // namespace v8 1256 } // namespace v8
1255 1257
1256 #endif // V8_PARSING_PARSER_H_ 1258 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698