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