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/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/base/compiler-specific.h" | 10 #include "src/base/compiler-specific.h" |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
579 private: | 579 private: |
580 ZoneList<Expression*> cooked_; | 580 ZoneList<Expression*> cooked_; |
581 ZoneList<Expression*> raw_; | 581 ZoneList<Expression*> raw_; |
582 ZoneList<Expression*> expressions_; | 582 ZoneList<Expression*> expressions_; |
583 int pos_; | 583 int pos_; |
584 }; | 584 }; |
585 | 585 |
586 typedef TemplateLiteral* TemplateLiteralState; | 586 typedef TemplateLiteral* TemplateLiteralState; |
587 | 587 |
588 TemplateLiteralState OpenTemplateLiteral(int pos); | 588 TemplateLiteralState OpenTemplateLiteral(int pos); |
589 void AddTemplateSpan(TemplateLiteralState* state, bool tail); | 589 void AddTemplateSpan(TemplateLiteralState* state, bool should_cook, |
adamk
2017/02/07 20:55:13
Can you give this method a comment? Neither "shoul
bakkot1
2017/02/13 20:22:24
Done.
| |
590 bool tail); | |
590 void AddTemplateExpression(TemplateLiteralState* state, | 591 void AddTemplateExpression(TemplateLiteralState* state, |
591 Expression* expression); | 592 Expression* expression); |
592 Expression* CloseTemplateLiteral(TemplateLiteralState* state, int start, | 593 Expression* CloseTemplateLiteral(TemplateLiteralState* state, int start, |
593 Expression* tag); | 594 Expression* tag); |
594 uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit); | 595 uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit); |
595 | 596 |
596 ZoneList<Expression*>* PrepareSpreadArguments(ZoneList<Expression*>* list); | 597 ZoneList<Expression*>* PrepareSpreadArguments(ZoneList<Expression*>* list); |
597 Expression* SpreadCall(Expression* function, ZoneList<Expression*>* args, | 598 Expression* SpreadCall(Expression* function, ZoneList<Expression*>* args, |
598 int pos, Call::PossiblyEval is_possibly_eval); | 599 int pos, Call::PossiblyEval is_possibly_eval); |
599 Expression* SpreadCallNew(Expression* function, ZoneList<Expression*>* args, | 600 Expression* SpreadCallNew(Expression* function, ZoneList<Expression*>* args, |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1192 | 1193 |
1193 private: | 1194 private: |
1194 ParserTarget** variable_; | 1195 ParserTarget** variable_; |
1195 ParserTarget* previous_; | 1196 ParserTarget* previous_; |
1196 }; | 1197 }; |
1197 | 1198 |
1198 } // namespace internal | 1199 } // namespace internal |
1199 } // namespace v8 | 1200 } // namespace v8 |
1200 | 1201 |
1201 #endif // V8_PARSING_PARSER_H_ | 1202 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |