| 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/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/base/compiler-specific.h" | 10 #include "src/base/compiler-specific.h" |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 Statement* RewriteSwitchStatement(Expression* tag, | 334 Statement* RewriteSwitchStatement(Expression* tag, |
| 335 SwitchStatement* switch_statement, | 335 SwitchStatement* switch_statement, |
| 336 ZoneList<CaseClause*>* cases, Scope* scope); | 336 ZoneList<CaseClause*>* cases, Scope* scope); |
| 337 void RewriteCatchPattern(CatchInfo* catch_info, bool* ok); | 337 void RewriteCatchPattern(CatchInfo* catch_info, bool* ok); |
| 338 void ValidateCatchBlock(const CatchInfo& catch_info, bool* ok); | 338 void ValidateCatchBlock(const CatchInfo& catch_info, bool* ok); |
| 339 Statement* RewriteTryStatement(Block* try_block, Block* catch_block, | 339 Statement* RewriteTryStatement(Block* try_block, Block* catch_block, |
| 340 Block* finally_block, | 340 Block* finally_block, |
| 341 const CatchInfo& catch_info, int pos); | 341 const CatchInfo& catch_info, int pos); |
| 342 | 342 |
| 343 Statement* DeclareFunction(const AstRawString* variable_name, | 343 Statement* DeclareFunction(const AstRawString* variable_name, |
| 344 FunctionLiteral* function, int pos, | 344 FunctionLiteral* function, VariableMode mode, |
| 345 bool is_generator, bool is_async, | 345 int pos, bool is_generator, bool is_async, |
| 346 bool is_sloppy_block_function, |
| 346 ZoneList<const AstRawString*>* names, bool* ok); | 347 ZoneList<const AstRawString*>* names, bool* ok); |
| 347 V8_INLINE Statement* DeclareClass(const AstRawString* variable_name, | 348 V8_INLINE Statement* DeclareClass(const AstRawString* variable_name, |
| 348 Expression* value, | 349 Expression* value, |
| 349 ZoneList<const AstRawString*>* names, | 350 ZoneList<const AstRawString*>* names, |
| 350 int class_token_pos, int end_pos, bool* ok); | 351 int class_token_pos, int end_pos, bool* ok); |
| 351 V8_INLINE void DeclareClassVariable(const AstRawString* name, | 352 V8_INLINE void DeclareClassVariable(const AstRawString* name, |
| 352 Scope* block_scope, ClassInfo* class_info, | 353 Scope* block_scope, ClassInfo* class_info, |
| 353 int class_token_pos, bool* ok); | 354 int class_token_pos, bool* ok); |
| 354 V8_INLINE void DeclareClassProperty(const AstRawString* class_name, | 355 V8_INLINE void DeclareClassProperty(const AstRawString* class_name, |
| 355 ClassLiteralProperty* property, | 356 ClassLiteralProperty* property, |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1174 | 1175 |
| 1175 private: | 1176 private: |
| 1176 ParserTarget** variable_; | 1177 ParserTarget** variable_; |
| 1177 ParserTarget* previous_; | 1178 ParserTarget* previous_; |
| 1178 }; | 1179 }; |
| 1179 | 1180 |
| 1180 } // namespace internal | 1181 } // namespace internal |
| 1181 } // namespace v8 | 1182 } // namespace v8 |
| 1182 | 1183 |
| 1183 #endif // V8_PARSING_PARSER_H_ | 1184 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |