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

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

Issue 9414003: Initial implementation of a flow-graph builder for Dart's AST. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rely on assumption that code can reach both branches of a condition. Created 8 years, 10 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/code_patcher_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) 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 virtual void VisitChildren(AstNodeVisitor* visitor) const { } 243 virtual void VisitChildren(AstNodeVisitor* visitor) const { }
244 244
245 DECLARE_COMMON_NODE_FUNCTIONS(CloneContextNode); 245 DECLARE_COMMON_NODE_FUNCTIONS(CloneContextNode);
246 246
247 private: 247 private:
248 DISALLOW_COPY_AND_ASSIGN(CloneContextNode); 248 DISALLOW_COPY_AND_ASSIGN(CloneContextNode);
249 }; 249 };
250 250
251 251
252 class ArgumentListNode : public AstNode { 252 class ArgumentListNode : public AstNode {
253 public: 253 public:
254 explicit ArgumentListNode(intptr_t token_index) 254 explicit ArgumentListNode(intptr_t token_index)
255 : AstNode(token_index), 255 : AstNode(token_index),
256 nodes_(4), 256 nodes_(4),
257 names_(Array::ZoneHandle()) { 257 names_(Array::ZoneHandle()) {
258 } 258 }
259 259
260 void VisitChildren(AstNodeVisitor* visitor) const; 260 void VisitChildren(AstNodeVisitor* visitor) const;
261 261
262 void Add(AstNode* node) { 262 void Add(AstNode* node) {
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 const LocalVariable& context_var_; 1916 const LocalVariable& context_var_;
1917 1917
1918 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1918 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1919 }; 1919 };
1920 1920
1921 } // namespace dart 1921 } // namespace dart
1922 1922
1923 #undef DECLARE_COMMON_NODE_FUNCTIONS 1923 #undef DECLARE_COMMON_NODE_FUNCTIONS
1924 1924
1925 #endif // VM_AST_H_ 1925 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/code_patcher_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698