| 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_PARSER_H_ | 5 #ifndef V8_PARSING_PARSER_H_ |
| 6 #define V8_PARSING_PARSER_H_ | 6 #define V8_PARSING_PARSER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 Expression* right, int pos); | 1089 Expression* right, int pos); |
| 1090 | 1090 |
| 1091 friend class NonPatternRewriter; | 1091 friend class NonPatternRewriter; |
| 1092 V8_INLINE Expression* RewriteSpreads(ArrayLiteral* lit); | 1092 V8_INLINE Expression* RewriteSpreads(ArrayLiteral* lit); |
| 1093 | 1093 |
| 1094 V8_INLINE void RewriteNonPattern(ExpressionClassifier* classifier, bool* ok); | 1094 V8_INLINE void RewriteNonPattern(ExpressionClassifier* classifier, bool* ok); |
| 1095 | 1095 |
| 1096 friend class InitializerRewriter; | 1096 friend class InitializerRewriter; |
| 1097 void RewriteParameterInitializer(Expression* expr, Scope* scope); | 1097 void RewriteParameterInitializer(Expression* expr, Scope* scope); |
| 1098 | 1098 |
| 1099 Expression* BuildCreateJSGeneratorObject(int pos); | 1099 Expression* BuildCreateJSGeneratorObject(int pos, FunctionKind kind); |
| 1100 Expression* BuildPromiseResolve(Expression* value, int pos); | 1100 Expression* BuildPromiseResolve(Expression* value, int pos); |
| 1101 Expression* BuildPromiseReject(Expression* value, int pos); | 1101 Expression* BuildPromiseReject(Expression* value, int pos); |
| 1102 | 1102 |
| 1103 Scanner scanner_; | 1103 Scanner scanner_; |
| 1104 PreParser* reusable_preparser_; | 1104 PreParser* reusable_preparser_; |
| 1105 Scope* original_scope_; // for ES5 function declarations in sloppy eval | 1105 Scope* original_scope_; // for ES5 function declarations in sloppy eval |
| 1106 Target* target_stack_; // for break, continue statements | 1106 Target* target_stack_; // for break, continue statements |
| 1107 ScriptCompiler::CompileOptions compile_options_; | 1107 ScriptCompiler::CompileOptions compile_options_; |
| 1108 ParseData* cached_parse_data_; | 1108 ParseData* cached_parse_data_; |
| 1109 | 1109 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 | 1293 |
| 1294 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1294 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1295 return parser_->ParseDoExpression(ok); | 1295 return parser_->ParseDoExpression(ok); |
| 1296 } | 1296 } |
| 1297 | 1297 |
| 1298 | 1298 |
| 1299 } // namespace internal | 1299 } // namespace internal |
| 1300 } // namespace v8 | 1300 } // namespace v8 |
| 1301 | 1301 |
| 1302 #endif // V8_PARSING_PARSER_H_ | 1302 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |