| 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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 FunctionNameValidity function_name_validity, FunctionKind kind, | 890 FunctionNameValidity function_name_validity, FunctionKind kind, |
| 891 int function_token_position, FunctionLiteral::FunctionType type, | 891 int function_token_position, FunctionLiteral::FunctionType type, |
| 892 LanguageMode language_mode, bool* ok); | 892 LanguageMode language_mode, bool* ok); |
| 893 | 893 |
| 894 PreParserExpression ParseClassLiteral(Type::ExpressionClassifier* classifier, | 894 PreParserExpression ParseClassLiteral(Type::ExpressionClassifier* classifier, |
| 895 PreParserIdentifier name, | 895 PreParserIdentifier name, |
| 896 Scanner::Location class_name_location, | 896 Scanner::Location class_name_location, |
| 897 bool name_is_strict_reserved, int pos, | 897 bool name_is_strict_reserved, int pos, |
| 898 bool* ok); | 898 bool* ok); |
| 899 | 899 |
| 900 V8_INLINE void MarkCollectedTailCallExpressions() {} |
| 900 V8_INLINE void MarkTailPosition(PreParserExpression) {} | 901 V8_INLINE void MarkTailPosition(PreParserExpression) {} |
| 901 | 902 |
| 902 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) { | 903 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) { |
| 903 return list; | 904 return list; |
| 904 } | 905 } |
| 905 | 906 |
| 906 inline void MaterializeUnspreadArgumentsLiterals(int count); | 907 inline void MaterializeUnspreadArgumentsLiterals(int count); |
| 907 | 908 |
| 908 inline PreParserExpression SpreadCall(PreParserExpression function, | 909 inline PreParserExpression SpreadCall(PreParserExpression function, |
| 909 PreParserExpressionList args, int pos); | 910 PreParserExpressionList args, int pos); |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 const PreParserFormalParameters& parameters, FunctionKind kind, | 1200 const PreParserFormalParameters& parameters, FunctionKind kind, |
| 1200 FunctionLiteral::FunctionType function_type, bool* ok) { | 1201 FunctionLiteral::FunctionType function_type, bool* ok) { |
| 1201 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 1202 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, |
| 1202 kind, function_type, ok); | 1203 kind, function_type, ok); |
| 1203 } | 1204 } |
| 1204 | 1205 |
| 1205 } // namespace internal | 1206 } // namespace internal |
| 1206 } // namespace v8 | 1207 } // namespace v8 |
| 1207 | 1208 |
| 1208 #endif // V8_PARSING_PREPARSER_H | 1209 #endif // V8_PARSING_PREPARSER_H |
| OLD | NEW |