| 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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 | 893 |
| 894 void CheckConflictingVarDeclarations(Scope* scope, bool* ok) {} | 894 void CheckConflictingVarDeclarations(Scope* scope, bool* ok) {} |
| 895 | 895 |
| 896 // Temporary glue; these functions will move to ParserBase. | 896 // Temporary glue; these functions will move to ParserBase. |
| 897 PreParserExpression ParseV8Intrinsic(bool* ok); | 897 PreParserExpression ParseV8Intrinsic(bool* ok); |
| 898 V8_INLINE PreParserExpression ParseDoExpression(bool* ok); | 898 V8_INLINE PreParserExpression ParseDoExpression(bool* ok); |
| 899 PreParserExpression ParseFunctionLiteral( | 899 PreParserExpression ParseFunctionLiteral( |
| 900 PreParserIdentifier name, Scanner::Location function_name_location, | 900 PreParserIdentifier name, Scanner::Location function_name_location, |
| 901 FunctionNameValidity function_name_validity, FunctionKind kind, | 901 FunctionNameValidity function_name_validity, FunctionKind kind, |
| 902 int function_token_position, FunctionLiteral::FunctionType type, | 902 int function_token_position, FunctionLiteral::FunctionType type, |
| 903 FunctionLiteral::ArityRestriction arity_restriction, | |
| 904 LanguageMode language_mode, bool* ok); | 903 LanguageMode language_mode, bool* ok); |
| 905 | 904 |
| 906 PreParserExpression ParseClassLiteral(PreParserIdentifier name, | 905 PreParserExpression ParseClassLiteral(PreParserIdentifier name, |
| 907 Scanner::Location class_name_location, | 906 Scanner::Location class_name_location, |
| 908 bool name_is_strict_reserved, int pos, | 907 bool name_is_strict_reserved, int pos, |
| 909 bool* ok); | 908 bool* ok); |
| 910 | 909 |
| 911 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) { | 910 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) { |
| 912 return list; | 911 return list; |
| 913 } | 912 } |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 int* expected_property_count, bool* ok); | 1061 int* expected_property_count, bool* ok); |
| 1063 V8_INLINE PreParserStatementList ParseEagerFunctionBody( | 1062 V8_INLINE PreParserStatementList ParseEagerFunctionBody( |
| 1064 PreParserIdentifier function_name, int pos, | 1063 PreParserIdentifier function_name, int pos, |
| 1065 const PreParserFormalParameters& parameters, FunctionKind kind, | 1064 const PreParserFormalParameters& parameters, FunctionKind kind, |
| 1066 FunctionLiteral::FunctionType function_type, bool* ok); | 1065 FunctionLiteral::FunctionType function_type, bool* ok); |
| 1067 | 1066 |
| 1068 Expression ParseFunctionLiteral( | 1067 Expression ParseFunctionLiteral( |
| 1069 Identifier name, Scanner::Location function_name_location, | 1068 Identifier name, Scanner::Location function_name_location, |
| 1070 FunctionNameValidity function_name_validity, FunctionKind kind, | 1069 FunctionNameValidity function_name_validity, FunctionKind kind, |
| 1071 int function_token_pos, FunctionLiteral::FunctionType function_type, | 1070 int function_token_pos, FunctionLiteral::FunctionType function_type, |
| 1072 FunctionLiteral::ArityRestriction arity_restriction, | |
| 1073 LanguageMode language_mode, bool* ok); | 1071 LanguageMode language_mode, bool* ok); |
| 1074 void ParseLazyFunctionLiteralBody(bool* ok, | 1072 void ParseLazyFunctionLiteralBody(bool* ok, |
| 1075 Scanner::BookmarkScope* bookmark = nullptr); | 1073 Scanner::BookmarkScope* bookmark = nullptr); |
| 1076 | 1074 |
| 1077 PreParserExpression ParseClassLiteral(PreParserIdentifier name, | 1075 PreParserExpression ParseClassLiteral(PreParserIdentifier name, |
| 1078 Scanner::Location class_name_location, | 1076 Scanner::Location class_name_location, |
| 1079 bool name_is_strict_reserved, int pos, | 1077 bool name_is_strict_reserved, int pos, |
| 1080 bool* ok); | 1078 bool* ok); |
| 1081 }; | 1079 }; |
| 1082 | 1080 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 const PreParserFormalParameters& parameters, FunctionKind kind, | 1161 const PreParserFormalParameters& parameters, FunctionKind kind, |
| 1164 FunctionLiteral::FunctionType function_type, bool* ok) { | 1162 FunctionLiteral::FunctionType function_type, bool* ok) { |
| 1165 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 1163 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, |
| 1166 kind, function_type, ok); | 1164 kind, function_type, ok); |
| 1167 } | 1165 } |
| 1168 | 1166 |
| 1169 } // namespace internal | 1167 } // namespace internal |
| 1170 } // namespace v8 | 1168 } // namespace v8 |
| 1171 | 1169 |
| 1172 #endif // V8_PARSING_PREPARSER_H | 1170 #endif // V8_PARSING_PREPARSER_H |
| OLD | NEW |