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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 V8_INLINE ZoneList<Statement*>* ParseEagerFunctionBody( | 571 V8_INLINE ZoneList<Statement*>* ParseEagerFunctionBody( |
572 const AstRawString* name, int pos, | 572 const AstRawString* name, int pos, |
573 const ParserFormalParameters& parameters, FunctionKind kind, | 573 const ParserFormalParameters& parameters, FunctionKind kind, |
574 FunctionLiteral::FunctionType function_type, bool* ok); | 574 FunctionLiteral::FunctionType function_type, bool* ok); |
575 | 575 |
576 ClassLiteral* ParseClassLiteral(const AstRawString* name, | 576 ClassLiteral* ParseClassLiteral(const AstRawString* name, |
577 Scanner::Location class_name_location, | 577 Scanner::Location class_name_location, |
578 bool name_is_strict_reserved, int pos, | 578 bool name_is_strict_reserved, int pos, |
579 bool* ok); | 579 bool* ok); |
580 | 580 |
| 581 V8_INLINE void MarkTailPosition(Expression* expression); |
| 582 |
581 V8_INLINE void CheckConflictingVarDeclarations(v8::internal::Scope* scope, | 583 V8_INLINE void CheckConflictingVarDeclarations(v8::internal::Scope* scope, |
582 bool* ok); | 584 bool* ok); |
583 | 585 |
584 class TemplateLiteral : public ZoneObject { | 586 class TemplateLiteral : public ZoneObject { |
585 public: | 587 public: |
586 TemplateLiteral(Zone* zone, int pos) | 588 TemplateLiteral(Zone* zone, int pos) |
587 : cooked_(8, zone), raw_(8, zone), expressions_(8, zone), pos_(pos) {} | 589 : cooked_(8, zone), raw_(8, zone), expressions_(8, zone), pos_(pos) {} |
588 | 590 |
589 const ZoneList<Expression*>* cooked() const { return &cooked_; } | 591 const ZoneList<Expression*>* cooked() const { return &cooked_; } |
590 const ZoneList<Expression*>* raw() const { return &raw_; } | 592 const ZoneList<Expression*>* raw() const { return &raw_; } |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1252 | 1254 |
1253 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1255 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1254 return parser_->ParseDoExpression(ok); | 1256 return parser_->ParseDoExpression(ok); |
1255 } | 1257 } |
1256 | 1258 |
1257 | 1259 |
1258 } // namespace internal | 1260 } // namespace internal |
1259 } // namespace v8 | 1261 } // namespace v8 |
1260 | 1262 |
1261 #endif // V8_PARSING_PARSER_H_ | 1263 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |