| 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_PREPARSER_H | 5 #ifndef V8_PARSING_PREPARSER_H |
| 6 #define V8_PARSING_PREPARSER_H | 6 #define V8_PARSING_PREPARSER_H |
| 7 | 7 |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/hashmap.h" | 10 #include "src/hashmap.h" |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 PreParserIdentifier name, Scanner::Location function_name_location, | 880 PreParserIdentifier name, Scanner::Location function_name_location, |
| 881 FunctionNameValidity function_name_validity, FunctionKind kind, | 881 FunctionNameValidity function_name_validity, FunctionKind kind, |
| 882 int function_token_position, FunctionLiteral::FunctionType type, | 882 int function_token_position, FunctionLiteral::FunctionType type, |
| 883 LanguageMode language_mode, bool* ok); | 883 LanguageMode language_mode, bool* ok); |
| 884 | 884 |
| 885 PreParserExpression ParseClassLiteral(PreParserIdentifier name, | 885 PreParserExpression ParseClassLiteral(PreParserIdentifier name, |
| 886 Scanner::Location class_name_location, | 886 Scanner::Location class_name_location, |
| 887 bool name_is_strict_reserved, int pos, | 887 bool name_is_strict_reserved, int pos, |
| 888 bool* ok); | 888 bool* ok); |
| 889 | 889 |
| 890 V8_INLINE void MarkTailPosition(PreParserExpression) {} |
| 891 |
| 890 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) { | 892 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) { |
| 891 return list; | 893 return list; |
| 892 } | 894 } |
| 893 | 895 |
| 894 inline void MaterializeUnspreadArgumentsLiterals(int count); | 896 inline void MaterializeUnspreadArgumentsLiterals(int count); |
| 895 | 897 |
| 896 inline PreParserExpression SpreadCall(PreParserExpression function, | 898 inline PreParserExpression SpreadCall(PreParserExpression function, |
| 897 PreParserExpressionList args, int pos); | 899 PreParserExpressionList args, int pos); |
| 898 | 900 |
| 899 inline PreParserExpression SpreadCallNew(PreParserExpression function, | 901 inline PreParserExpression SpreadCallNew(PreParserExpression function, |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 const PreParserFormalParameters& parameters, FunctionKind kind, | 1171 const PreParserFormalParameters& parameters, FunctionKind kind, |
| 1170 FunctionLiteral::FunctionType function_type, bool* ok) { | 1172 FunctionLiteral::FunctionType function_type, bool* ok) { |
| 1171 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 1173 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, |
| 1172 kind, function_type, ok); | 1174 kind, function_type, ok); |
| 1173 } | 1175 } |
| 1174 | 1176 |
| 1175 } // namespace internal | 1177 } // namespace internal |
| 1176 } // namespace v8 | 1178 } // namespace v8 |
| 1177 | 1179 |
| 1178 #endif // V8_PARSING_PREPARSER_H | 1180 #endif // V8_PARSING_PREPARSER_H |
| OLD | NEW |