| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 void ParseAndRewriteGeneratorFunctionBody(int pos, FunctionKind kind, | 344 void ParseAndRewriteGeneratorFunctionBody(int pos, FunctionKind kind, |
| 345 ZoneList<Statement*>* body, | 345 ZoneList<Statement*>* body, |
| 346 bool* ok); | 346 bool* ok); |
| 347 void CreateFunctionNameAssignment(const AstRawString* function_name, int pos, | 347 void CreateFunctionNameAssignment(const AstRawString* function_name, int pos, |
| 348 FunctionLiteral::FunctionType function_type, | 348 FunctionLiteral::FunctionType function_type, |
| 349 DeclarationScope* function_scope, | 349 DeclarationScope* function_scope, |
| 350 ZoneList<Statement*>* result, int index); | 350 ZoneList<Statement*>* result, int index); |
| 351 | 351 |
| 352 Statement* DeclareFunction(const AstRawString* variable_name, | 352 Statement* DeclareFunction(const AstRawString* variable_name, |
| 353 FunctionLiteral* function, VariableMode mode, | 353 FunctionLiteral* function, VariableMode mode, |
| 354 int pos, bool is_generator, bool is_async, | 354 int pos, bool is_sloppy_block_function, |
| 355 bool is_sloppy_block_function, | |
| 356 ZoneList<const AstRawString*>* names, bool* ok); | 355 ZoneList<const AstRawString*>* names, bool* ok); |
| 357 V8_INLINE Statement* DeclareClass(const AstRawString* variable_name, | 356 V8_INLINE Statement* DeclareClass(const AstRawString* variable_name, |
| 358 Expression* value, | 357 Expression* value, |
| 359 ZoneList<const AstRawString*>* names, | 358 ZoneList<const AstRawString*>* names, |
| 360 int class_token_pos, int end_pos, bool* ok); | 359 int class_token_pos, int end_pos, bool* ok); |
| 361 V8_INLINE void DeclareClassVariable(const AstRawString* name, | 360 V8_INLINE void DeclareClassVariable(const AstRawString* name, |
| 362 Scope* block_scope, ClassInfo* class_info, | 361 Scope* block_scope, ClassInfo* class_info, |
| 363 int class_token_pos, bool* ok); | 362 int class_token_pos, bool* ok); |
| 364 V8_INLINE void DeclareClassProperty(const AstRawString* class_name, | 363 V8_INLINE void DeclareClassProperty(const AstRawString* class_name, |
| 365 ClassLiteralProperty* property, | 364 ClassLiteralProperty* property, |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 | 1191 |
| 1193 private: | 1192 private: |
| 1194 ParserTarget** variable_; | 1193 ParserTarget** variable_; |
| 1195 ParserTarget* previous_; | 1194 ParserTarget* previous_; |
| 1196 }; | 1195 }; |
| 1197 | 1196 |
| 1198 } // namespace internal | 1197 } // namespace internal |
| 1199 } // namespace v8 | 1198 } // namespace v8 |
| 1200 | 1199 |
| 1201 #endif // V8_PARSING_PARSER_H_ | 1200 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |