Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Side by Side Diff: runtime/vm/parser.h

Issue 362153002: Transform functions marked as async (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: first round of comments Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 RawFunction::Modifier ParseFunctionModifier();
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
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 RawClass* GetFutureClass();
469 SequenceNode* BuildAsyncFuture(const Function& outer,
470 SequenceNode* parsed_body,
471 ParamList* params,
472 intptr_t saved_pos);
466 473
467 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); 474 void ParseNativeFunctionBlock(const ParamList* params, const Function& func);
468 475
469 SequenceNode* ParseInstanceGetter(const Function& func); 476 SequenceNode* ParseInstanceGetter(const Function& func);
470 SequenceNode* ParseInstanceSetter(const Function& func); 477 SequenceNode* ParseInstanceSetter(const Function& func);
471 SequenceNode* ParseStaticFinalGetter(const Function& func); 478 SequenceNode* ParseStaticFinalGetter(const Function& func);
472 SequenceNode* ParseStaticInitializer(const Function& func); 479 SequenceNode* ParseStaticInitializer(const Function& func);
473 SequenceNode* ParseMethodExtractor(const Function& func); 480 SequenceNode* ParseMethodExtractor(const Function& func);
474 SequenceNode* ParseNoSuchMethodDispatcher(const Function& func, 481 SequenceNode* ParseNoSuchMethodDispatcher(const Function& func,
475 Array* default_values); 482 Array* default_values);
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 intptr_t last_used_try_index_; 738 intptr_t last_used_try_index_;
732 739
733 bool unregister_pending_function_; 740 bool unregister_pending_function_;
734 741
735 DISALLOW_COPY_AND_ASSIGN(Parser); 742 DISALLOW_COPY_AND_ASSIGN(Parser);
736 }; 743 };
737 744
738 } // namespace dart 745 } // namespace dart
739 746
740 #endif // VM_PARSER_H_ 747 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698