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

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

Issue 8893008: Helper ast node sequences must not wrongly grab ownership of the enclosing (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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/code_generator_ia32.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assert.h" 9 #include "vm/assert.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 }; 200 };
201 201
202 202
203 class SequenceNode : public AstNode { 203 class SequenceNode : public AstNode {
204 public: 204 public:
205 SequenceNode(intptr_t token_index, LocalScope* scope) 205 SequenceNode(intptr_t token_index, LocalScope* scope)
206 : AstNode(token_index), 206 : AstNode(token_index),
207 scope_(scope), 207 scope_(scope),
208 nodes_(4), 208 nodes_(4),
209 label_(NULL) { 209 label_(NULL) {
210 ASSERT(scope_ != NULL);
211 } 210 }
212 211
213 LocalScope* scope() const { return scope_; } 212 LocalScope* scope() const { return scope_; }
214 213
215 SourceLabel* label() const { return label_; } 214 SourceLabel* label() const { return label_; }
216 void set_label(SourceLabel* value) { label_ = value; } 215 void set_label(SourceLabel* value) { label_ = value; }
217 216
218 void VisitChildren(AstNodeVisitor* visitor) const; 217 void VisitChildren(AstNodeVisitor* visitor) const;
219 218
220 void Add(AstNode* node) { nodes_.Add(node); } 219 void Add(AstNode* node) { nodes_.Add(node); }
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
1917 const LocalVariable& context_var_; 1916 const LocalVariable& context_var_;
1918 1917
1919 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1918 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1920 }; 1919 };
1921 1920
1922 } // namespace dart 1921 } // namespace dart
1923 1922
1924 #undef DECLARE_COMMON_NODE_FUNCTIONS 1923 #undef DECLARE_COMMON_NODE_FUNCTIONS
1925 1924
1926 #endif // VM_AST_H_ 1925 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698