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

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

Issue 10832126: Store pointer instead of reference to LocalVariable in ast and flow graph. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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) 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_PRINTER_H_ 5 #ifndef VM_AST_PRINTER_H_
6 #define VM_AST_PRINTER_H_ 6 #define VM_AST_PRINTER_H_
7 7
8 #include "vm/ast.h" 8 #include "vm/ast.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 10
(...skipping 13 matching lines...) Expand all
24 #define DEFINE_VISITOR_FUNCTION(type, name) \ 24 #define DEFINE_VISITOR_FUNCTION(type, name) \
25 virtual void Visit##type(type* node); 25 virtual void Visit##type(type* node);
26 NODE_LIST(DEFINE_VISITOR_FUNCTION) 26 NODE_LIST(DEFINE_VISITOR_FUNCTION)
27 #undef DEFINE_VISITOR_FUNCTION 27 #undef DEFINE_VISITOR_FUNCTION
28 28
29 private: 29 private:
30 AstPrinter(); 30 AstPrinter();
31 ~AstPrinter(); 31 ~AstPrinter();
32 32
33 void VisitGenericAstNode(AstNode* node); 33 void VisitGenericAstNode(AstNode* node);
34 void VisitGenericLocalNode(AstNode* node, const LocalVariable& local); 34 void VisitGenericLocalNode(AstNode* node, const LocalVariable* local);
35 void VisitGenericFieldNode(AstNode* node, const Field& field); 35 void VisitGenericFieldNode(AstNode* node, const Field& field);
36 36
37 DISALLOW_COPY_AND_ASSIGN(AstPrinter); 37 DISALLOW_COPY_AND_ASSIGN(AstPrinter);
38 }; 38 };
39 39
40 } // namespace dart 40 } // namespace dart
41 41
42 #endif // VM_AST_PRINTER_H_ 42 #endif // VM_AST_PRINTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698