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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 TemplateLiteralState OpenTemplateLiteral(int pos); | 583 TemplateLiteralState OpenTemplateLiteral(int pos); |
584 void AddTemplateSpan(TemplateLiteralState* state, bool tail); | 584 void AddTemplateSpan(TemplateLiteralState* state, bool tail); |
585 void AddTemplateExpression(TemplateLiteralState* state, | 585 void AddTemplateExpression(TemplateLiteralState* state, |
586 Expression* expression); | 586 Expression* expression); |
587 Expression* CloseTemplateLiteral(TemplateLiteralState* state, int start, | 587 Expression* CloseTemplateLiteral(TemplateLiteralState* state, int start, |
588 Expression* tag); | 588 Expression* tag); |
589 uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit); | 589 uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit); |
590 | 590 |
591 ZoneList<Expression*>* PrepareSpreadArguments(ZoneList<Expression*>* list); | 591 ZoneList<Expression*>* PrepareSpreadArguments(ZoneList<Expression*>* list); |
592 Expression* SpreadCall(Expression* function, ZoneList<Expression*>* args, | 592 Expression* SpreadCall(Expression* function, ZoneList<Expression*>* args, |
593 int pos); | 593 int pos, Call::PossiblyEval is_possibly_eval); |
594 Expression* SpreadCallNew(Expression* function, ZoneList<Expression*>* args, | 594 Expression* SpreadCallNew(Expression* function, ZoneList<Expression*>* args, |
595 int pos); | 595 int pos); |
596 Expression* RewriteSuperCall(Expression* call_expression); | 596 Expression* RewriteSuperCall(Expression* call_expression); |
597 | 597 |
598 void SetLanguageMode(Scope* scope, LanguageMode mode); | 598 void SetLanguageMode(Scope* scope, LanguageMode mode); |
599 void SetAsmModule(); | 599 void SetAsmModule(); |
600 | 600 |
601 V8_INLINE void MarkCollectedTailCallExpressions(); | 601 V8_INLINE void MarkCollectedTailCallExpressions(); |
602 V8_INLINE void MarkTailPosition(Expression* expression); | 602 V8_INLINE void MarkTailPosition(Expression* expression); |
603 | 603 |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 | 1174 |
1175 private: | 1175 private: |
1176 ParserTarget** variable_; | 1176 ParserTarget** variable_; |
1177 ParserTarget* previous_; | 1177 ParserTarget* previous_; |
1178 }; | 1178 }; |
1179 | 1179 |
1180 } // namespace internal | 1180 } // namespace internal |
1181 } // namespace v8 | 1181 } // namespace v8 |
1182 | 1182 |
1183 #endif // V8_PARSING_PARSER_H_ | 1183 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |