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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 352 |
353 Statement* DeclareFunction(const AstRawString* variable_name, | 353 Statement* DeclareFunction(const AstRawString* variable_name, |
354 FunctionLiteral* function, VariableMode mode, | 354 FunctionLiteral* function, VariableMode mode, |
355 int pos, bool is_sloppy_block_function, | 355 int pos, bool is_sloppy_block_function, |
356 ZoneList<const AstRawString*>* names, bool* ok); | 356 ZoneList<const AstRawString*>* names, bool* ok); |
357 V8_INLINE Statement* DeclareClass(const AstRawString* variable_name, | 357 V8_INLINE Statement* DeclareClass(const AstRawString* variable_name, |
358 Expression* value, | 358 Expression* value, |
359 ZoneList<const AstRawString*>* names, | 359 ZoneList<const AstRawString*>* names, |
360 int class_token_pos, int end_pos, bool* ok); | 360 int class_token_pos, int end_pos, bool* ok); |
361 V8_INLINE void DeclareClassVariable(const AstRawString* name, | 361 V8_INLINE void DeclareClassVariable(const AstRawString* name, |
362 Scope* block_scope, ClassInfo* class_info, | 362 ClassInfo* class_info, |
363 int class_token_pos, bool* ok); | 363 int class_token_pos, bool* ok); |
364 V8_INLINE void DeclareClassProperty(const AstRawString* class_name, | 364 V8_INLINE void DeclareClassProperty(const AstRawString* class_name, |
365 ClassLiteralProperty* property, | 365 ClassLiteralProperty* property, |
366 ClassLiteralProperty::Kind kind, | 366 ClassLiteralProperty::Kind kind, |
367 bool is_static, bool is_constructor, | 367 bool is_static, bool is_constructor, |
368 ClassInfo* class_info, bool* ok); | 368 ClassInfo* class_info, bool* ok); |
369 V8_INLINE Expression* RewriteClassLiteral(const AstRawString* name, | 369 V8_INLINE Expression* RewriteClassLiteral(const AstRawString* name, |
370 ClassInfo* class_info, int pos, | 370 ClassInfo* class_info, int pos, |
371 bool* ok); | 371 bool* ok); |
372 V8_INLINE Statement* DeclareNative(const AstRawString* name, int pos, | 372 V8_INLINE Statement* DeclareNative(const AstRawString* name, int pos, |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1178 | 1178 |
1179 private: | 1179 private: |
1180 ParserTarget** variable_; | 1180 ParserTarget** variable_; |
1181 ParserTarget* previous_; | 1181 ParserTarget* previous_; |
1182 }; | 1182 }; |
1183 | 1183 |
1184 } // namespace internal | 1184 } // namespace internal |
1185 } // namespace v8 | 1185 } // namespace v8 |
1186 | 1186 |
1187 #endif // V8_PARSING_PARSER_H_ | 1187 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |