| 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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1071 } | 1071 } |
| 1072 } | 1072 } |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 void DeclareArrowFunctionFormalParameters(ParserFormalParameters* parameters, | 1075 void DeclareArrowFunctionFormalParameters(ParserFormalParameters* parameters, |
| 1076 Expression* params, | 1076 Expression* params, |
| 1077 const Scanner::Location& params_loc, | 1077 const Scanner::Location& params_loc, |
| 1078 Scanner::Location* duplicate_loc, | 1078 Scanner::Location* duplicate_loc, |
| 1079 bool* ok); | 1079 bool* ok); |
| 1080 | 1080 |
| 1081 void ReindexLiterals(const ParserFormalParameters& parameters); | |
| 1082 | |
| 1083 V8_INLINE Expression* NoTemplateTag() { return NULL; } | 1081 V8_INLINE Expression* NoTemplateTag() { return NULL; } |
| 1084 V8_INLINE static bool IsTaggedTemplate(const Expression* tag) { | 1082 V8_INLINE static bool IsTaggedTemplate(const Expression* tag) { |
| 1085 return tag != NULL; | 1083 return tag != NULL; |
| 1086 } | 1084 } |
| 1087 | 1085 |
| 1088 V8_INLINE void MaterializeUnspreadArgumentsLiterals(int count) {} | 1086 V8_INLINE void MaterializeUnspreadArgumentsLiterals(int count) {} |
| 1089 | 1087 |
| 1090 Expression* ExpressionListToExpression(ZoneList<Expression*>* args); | 1088 Expression* ExpressionListToExpression(ZoneList<Expression*>* args); |
| 1091 | 1089 |
| 1092 void AddAccessorPrefixToFunctionName(bool is_get, FunctionLiteral* function, | 1090 void AddAccessorPrefixToFunctionName(bool is_get, FunctionLiteral* function, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 | 1177 |
| 1180 private: | 1178 private: |
| 1181 ParserTarget** variable_; | 1179 ParserTarget** variable_; |
| 1182 ParserTarget* previous_; | 1180 ParserTarget* previous_; |
| 1183 }; | 1181 }; |
| 1184 | 1182 |
| 1185 } // namespace internal | 1183 } // namespace internal |
| 1186 } // namespace v8 | 1184 } // namespace v8 |
| 1187 | 1185 |
| 1188 #endif // V8_PARSING_PARSER_H_ | 1186 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |