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

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

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 years, 1 month 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 | « runtime/lib/isolate.cc ('k') | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »
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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 899
900 900
901 class JumpNode : public AstNode { 901 class JumpNode : public AstNode {
902 public: 902 public:
903 JumpNode(intptr_t token_pos, 903 JumpNode(intptr_t token_pos,
904 Token::Kind kind, 904 Token::Kind kind,
905 SourceLabel* label) 905 SourceLabel* label)
906 : AstNode(token_pos), 906 : AstNode(token_pos),
907 kind_(kind), 907 kind_(kind),
908 label_(label), 908 label_(label),
909 inlined_finally_list_(NULL) { 909 inlined_finally_list_() {
910 ASSERT(label_ != NULL); 910 ASSERT(label_ != NULL);
911 ASSERT(kind_ == Token::kBREAK || kind_ == Token::kCONTINUE); 911 ASSERT(kind_ == Token::kBREAK || kind_ == Token::kCONTINUE);
912 if (kind_ == Token::kCONTINUE) { 912 if (kind_ == Token::kCONTINUE) {
913 label_->set_is_continue_target(true); 913 label_->set_is_continue_target(true);
914 } 914 }
915 } 915 }
916 916
917 SourceLabel* label() const { return label_; } 917 SourceLabel* label() const { return label_; }
918 Token::Kind kind() const { return kind_; } 918 Token::Kind kind() const { return kind_; }
919 919
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 const LocalVariable& context_var_; 1714 const LocalVariable& context_var_;
1715 1715
1716 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1716 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1717 }; 1717 };
1718 1718
1719 } // namespace dart 1719 } // namespace dart
1720 1720
1721 #undef DECLARE_COMMON_NODE_FUNCTIONS 1721 #undef DECLARE_COMMON_NODE_FUNCTIONS
1722 1722
1723 #endif // VM_AST_H_ 1723 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698