| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_PARSER_H_ | 5 #ifndef VM_PARSER_H_ |
| 6 #define VM_PARSER_H_ | 6 #define VM_PARSER_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 const Class& toplevel_class, | 356 const Class& toplevel_class, |
| 357 intptr_t metadata_pos); | 357 intptr_t metadata_pos); |
| 358 void ParseTypedef(const GrowableObjectArray& pending_classes, | 358 void ParseTypedef(const GrowableObjectArray& pending_classes, |
| 359 const Class& toplevel_class, | 359 const Class& toplevel_class, |
| 360 intptr_t metadata_pos); | 360 intptr_t metadata_pos); |
| 361 void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos); | 361 void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos); |
| 362 void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos); | 362 void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos); |
| 363 void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos); | 363 void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos); |
| 364 RawArray* EvaluateMetadata(); | 364 RawArray* EvaluateMetadata(); |
| 365 | 365 |
| 366 intptr_t ParseAsyncSpecifier(); |
| 367 |
| 366 // Support for parsing libraries. | 368 // Support for parsing libraries. |
| 367 RawObject* CallLibraryTagHandler(Dart_LibraryTag tag, | 369 RawObject* CallLibraryTagHandler(Dart_LibraryTag tag, |
| 368 intptr_t token_pos, | 370 intptr_t token_pos, |
| 369 const String& url); | 371 const String& url); |
| 370 void ParseIdentList(GrowableObjectArray* names); | 372 void ParseIdentList(GrowableObjectArray* names); |
| 371 void ParseLibraryDefinition(); | 373 void ParseLibraryDefinition(); |
| 372 void ParseLibraryName(); | 374 void ParseLibraryName(); |
| 373 void ParseLibraryImportExport(intptr_t metadata_pos); | 375 void ParseLibraryImportExport(intptr_t metadata_pos); |
| 374 void ParseLibraryPart(); | 376 void ParseLibraryPart(); |
| 375 void ParsePartHeader(); | 377 void ParsePartHeader(); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 intptr_t token_pos, | 458 intptr_t token_pos, |
| 457 AstNode* receiver); | 459 AstNode* receiver); |
| 458 static void AddFormalParamsToFunction(const ParamList* params, | 460 static void AddFormalParamsToFunction(const ParamList* params, |
| 459 const Function& func); | 461 const Function& func); |
| 460 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope); | 462 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope); |
| 461 | 463 |
| 462 SequenceNode* ParseConstructor(const Function& func, | 464 SequenceNode* ParseConstructor(const Function& func, |
| 463 Array* default_parameter_values); | 465 Array* default_parameter_values); |
| 464 SequenceNode* ParseFunc(const Function& func, | 466 SequenceNode* ParseFunc(const Function& func, |
| 465 Array* default_parameter_values); | 467 Array* default_parameter_values); |
| 468 SequenceNode* BuildAsyncFuture(SequenceNode* body, |
| 469 ParamList* params, |
| 470 intptr_t saved_pos); |
| 466 | 471 |
| 467 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); | 472 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); |
| 468 | 473 |
| 469 SequenceNode* ParseInstanceGetter(const Function& func); | 474 SequenceNode* ParseInstanceGetter(const Function& func); |
| 470 SequenceNode* ParseInstanceSetter(const Function& func); | 475 SequenceNode* ParseInstanceSetter(const Function& func); |
| 471 SequenceNode* ParseStaticFinalGetter(const Function& func); | 476 SequenceNode* ParseStaticFinalGetter(const Function& func); |
| 472 SequenceNode* ParseStaticInitializer(const Function& func); | 477 SequenceNode* ParseStaticInitializer(const Function& func); |
| 473 SequenceNode* ParseMethodExtractor(const Function& func); | 478 SequenceNode* ParseMethodExtractor(const Function& func); |
| 474 SequenceNode* ParseNoSuchMethodDispatcher(const Function& func, | 479 SequenceNode* ParseNoSuchMethodDispatcher(const Function& func, |
| 475 Array* default_values); | 480 Array* default_values); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 intptr_t last_used_try_index_; | 736 intptr_t last_used_try_index_; |
| 732 | 737 |
| 733 bool unregister_pending_function_; | 738 bool unregister_pending_function_; |
| 734 | 739 |
| 735 DISALLOW_COPY_AND_ASSIGN(Parser); | 740 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 736 }; | 741 }; |
| 737 | 742 |
| 738 } // namespace dart | 743 } // namespace dart |
| 739 | 744 |
| 740 #endif // VM_PARSER_H_ | 745 #endif // VM_PARSER_H_ |
| OLD | NEW |