| 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 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 inline PreParserExpression SpreadCallNew(PreParserExpression function, | 922 inline PreParserExpression SpreadCallNew(PreParserExpression function, |
| 923 PreParserExpressionList args, | 923 PreParserExpressionList args, |
| 924 int pos); | 924 int pos); |
| 925 | 925 |
| 926 inline void RewriteDestructuringAssignments() {} | 926 inline void RewriteDestructuringAssignments() {} |
| 927 | 927 |
| 928 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {} | 928 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {} |
| 929 | 929 |
| 930 void SetFunctionNameFromPropertyName(PreParserExpression, | 930 void SetFunctionNameFromPropertyName(PreParserExpression, |
| 931 PreParserIdentifier) {} | 931 PreParserIdentifier) {} |
| 932 void SetFunctionNameFromIdentifierRef(PreParserExpression, |
| 933 PreParserExpression) {} |
| 932 | 934 |
| 933 private: | 935 private: |
| 934 PreParser* pre_parser_; | 936 PreParser* pre_parser_; |
| 935 }; | 937 }; |
| 936 | 938 |
| 937 | 939 |
| 938 // Preparsing checks a JavaScript program and emits preparse-data that helps | 940 // Preparsing checks a JavaScript program and emits preparse-data that helps |
| 939 // a later parsing to be faster. | 941 // a later parsing to be faster. |
| 940 // See preparse-data-format.h for the data format. | 942 // See preparse-data-format.h for the data format. |
| 941 | 943 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 const PreParserFormalParameters& parameters, FunctionKind kind, | 1132 const PreParserFormalParameters& parameters, FunctionKind kind, |
| 1131 FunctionLiteral::FunctionType function_type, bool* ok) { | 1133 FunctionLiteral::FunctionType function_type, bool* ok) { |
| 1132 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 1134 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, |
| 1133 kind, function_type, ok); | 1135 kind, function_type, ok); |
| 1134 } | 1136 } |
| 1135 | 1137 |
| 1136 } // namespace internal | 1138 } // namespace internal |
| 1137 } // namespace v8 | 1139 } // namespace v8 |
| 1138 | 1140 |
| 1139 #endif // V8_PARSING_PREPARSER_H | 1141 #endif // V8_PARSING_PREPARSER_H |
| OLD | NEW |