Chromium Code Reviews| 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 MarkExpressionInTailPosition(Expression* expression); | |
|
rossberg
2016/04/26 07:42:31
Nit: just MarkTailPosition?
Igor Sheludko
2016/04/26 08:42:31
Done.
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |