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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 | 914 |
915 inline PreParserExpression SpreadCall(PreParserExpression function, | 915 inline PreParserExpression SpreadCall(PreParserExpression function, |
916 PreParserExpressionList args, int pos); | 916 PreParserExpressionList args, int pos); |
917 | 917 |
918 inline PreParserExpression SpreadCallNew(PreParserExpression function, | 918 inline PreParserExpression SpreadCallNew(PreParserExpression function, |
919 PreParserExpressionList args, | 919 PreParserExpressionList args, |
920 int pos); | 920 int pos); |
921 | 921 |
922 inline void RewriteDestructuringAssignments() {} | 922 inline void RewriteDestructuringAssignments() {} |
923 | 923 |
| 924 inline PreParserExpression RewriteAssignExponentiation( |
| 925 PreParserExpression left, PreParserExpression right, int pos) { |
| 926 return left; |
| 927 } |
| 928 |
924 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {} | 929 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {} |
925 | 930 |
926 void SetFunctionNameFromPropertyName(PreParserExpression, | 931 void SetFunctionNameFromPropertyName(PreParserExpression, |
927 PreParserIdentifier) {} | 932 PreParserIdentifier) {} |
928 void SetFunctionNameFromIdentifierRef(PreParserExpression, | 933 void SetFunctionNameFromIdentifierRef(PreParserExpression, |
929 PreParserExpression) {} | 934 PreParserExpression) {} |
930 | 935 |
931 inline PreParserExpression RewriteNonPattern( | 936 inline PreParserExpression RewriteNonPattern( |
932 PreParserExpression expr, const ExpressionClassifier* classifier, | 937 PreParserExpression expr, const ExpressionClassifier* classifier, |
933 bool* ok); | 938 bool* ok); |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 const PreParserFormalParameters& parameters, FunctionKind kind, | 1166 const PreParserFormalParameters& parameters, FunctionKind kind, |
1162 FunctionLiteral::FunctionType function_type, bool* ok) { | 1167 FunctionLiteral::FunctionType function_type, bool* ok) { |
1163 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 1168 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, |
1164 kind, function_type, ok); | 1169 kind, function_type, ok); |
1165 } | 1170 } |
1166 | 1171 |
1167 } // namespace internal | 1172 } // namespace internal |
1168 } // namespace v8 | 1173 } // namespace v8 |
1169 | 1174 |
1170 #endif // V8_PARSING_PREPARSER_H | 1175 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |