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

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

Issue 634603002: Await always waits (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | runtime/vm/ast_printer.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AST_H_ 5 #ifndef VM_AST_H_
6 #define VM_AST_H_ 6 #define VM_AST_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 // Return nodes can be of different types: 582 // Return nodes can be of different types:
583 // * A regular return node that in the case of async functions gets replaced 583 // * A regular return node that in the case of async functions gets replaced
584 // with appropriate completer calls. This kind is generated by dart code. 584 // with appropriate completer calls. This kind is generated by dart code.
585 // * A continuation return that just returns from a function. This kind is 585 // * A continuation return that just returns from a function. This kind is
586 // generated by AST transformers. 586 // generated by AST transformers.
587 class ReturnNode : public AstNode { 587 class ReturnNode : public AstNode {
588 public: 588 public:
589 enum ReturnType { 589 enum ReturnType {
590 kRegular, 590 kRegular,
591 kContinuation, 591 kContinuation,
592 kContinuationTarget
592 }; 593 };
593 594
594 // Return from a void function returns the null object. 595 // Return from a void function returns the null object.
595 explicit ReturnNode(intptr_t token_pos) 596 explicit ReturnNode(intptr_t token_pos)
596 : AstNode(token_pos), 597 : AstNode(token_pos),
597 value_(new LiteralNode(token_pos, Instance::ZoneHandle())), 598 value_(new LiteralNode(token_pos, Instance::ZoneHandle())),
598 inlined_finally_list_(), 599 inlined_finally_list_(),
599 return_type_(kRegular) { } 600 return_type_(kRegular) { }
600 // Return from a non-void function. 601 // Return from a non-void function.
601 ReturnNode(intptr_t token_pos, 602 ReturnNode(intptr_t token_pos,
(...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 const intptr_t try_index_; 1914 const intptr_t try_index_;
1914 1915
1915 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1916 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1916 }; 1917 };
1917 1918
1918 } // namespace dart 1919 } // namespace dart
1919 1920
1920 #undef DECLARE_COMMON_NODE_FUNCTIONS 1921 #undef DECLARE_COMMON_NODE_FUNCTIONS
1921 1922
1922 #endif // VM_AST_H_ 1923 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/ast_printer.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698