| 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/parsing/parser-base.h" | 10 #include "src/parsing/parser-base.h" |
| (...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 | 1010 |
| 1011 V8_INLINE Expression* NoTemplateTag() { return NULL; } | 1011 V8_INLINE Expression* NoTemplateTag() { return NULL; } |
| 1012 V8_INLINE static bool IsTaggedTemplate(const Expression* tag) { | 1012 V8_INLINE static bool IsTaggedTemplate(const Expression* tag) { |
| 1013 return tag != NULL; | 1013 return tag != NULL; |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 V8_INLINE void MaterializeUnspreadArgumentsLiterals(int count) {} | 1016 V8_INLINE void MaterializeUnspreadArgumentsLiterals(int count) {} |
| 1017 | 1017 |
| 1018 Expression* ExpressionListToExpression(ZoneList<Expression*>* args); | 1018 Expression* ExpressionListToExpression(ZoneList<Expression*>* args); |
| 1019 | 1019 |
| 1020 void AddAccessorPrefixToFunctionName(bool is_get, FunctionLiteral* function, |
| 1021 const AstRawString* name); |
| 1022 |
| 1020 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, | 1023 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, |
| 1021 const AstRawString* name); | 1024 const AstRawString* name); |
| 1022 void SetFunctionNameFromPropertyName(ClassLiteralProperty* property, | |
| 1023 const AstRawString* name); | |
| 1024 | 1025 |
| 1025 void SetFunctionNameFromIdentifierRef(Expression* value, | 1026 void SetFunctionNameFromIdentifierRef(Expression* value, |
| 1026 Expression* identifier); | 1027 Expression* identifier); |
| 1027 | 1028 |
| 1028 V8_INLINE ZoneList<typename ExpressionClassifier::Error>* | 1029 V8_INLINE ZoneList<typename ExpressionClassifier::Error>* |
| 1029 GetReportedErrorList() const { | 1030 GetReportedErrorList() const { |
| 1030 return function_state_->GetReportedErrorList(); | 1031 return function_state_->GetReportedErrorList(); |
| 1031 } | 1032 } |
| 1032 | 1033 |
| 1033 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const { | 1034 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1059 | 1060 |
| 1060 #ifdef DEBUG | 1061 #ifdef DEBUG |
| 1061 void Print(AstNode* node); | 1062 void Print(AstNode* node); |
| 1062 #endif // DEBUG | 1063 #endif // DEBUG |
| 1063 }; | 1064 }; |
| 1064 | 1065 |
| 1065 } // namespace internal | 1066 } // namespace internal |
| 1066 } // namespace v8 | 1067 } // namespace v8 |
| 1067 | 1068 |
| 1068 #endif // V8_PARSING_PARSER_H_ | 1069 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |