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

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

Issue 10350003: Step toward eliminating increment nodes, starting with increment local. Fix a bug in evaluating sid… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | « runtime/vm/ast.cc ('k') | 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 #include "vm/ast_printer.h" 5 #include "vm/ast_printer.h"
6 6
7 #include "vm/handles.h" 7 #include "vm/handles.h"
8 #include "vm/object.h" 8 #include "vm/object.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 242
243 void AstPrinter::VisitJumpNode(JumpNode* node) { 243 void AstPrinter::VisitJumpNode(JumpNode* node) {
244 OS::Print("(%s %s in scope 0x%x)", 244 OS::Print("(%s %s in scope 0x%x)",
245 node->Name(), 245 node->Name(),
246 node->label()->name().ToCString(), 246 node->label()->name().ToCString(),
247 node->label()->owner()); 247 node->label()->owner());
248 } 248 }
249 249
250 250
251 void AstPrinter::VisitIncrOpLocalNode(IncrOpLocalNode* node) {
252 VisitGenericLocalNode(node, node->local());
253 }
254
255
256 void AstPrinter::VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node) { 251 void AstPrinter::VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node) {
257 VisitGenericAstNode(node); 252 VisitGenericAstNode(node);
258 } 253 }
259 254
260 255
261 void AstPrinter::VisitIncrOpIndexedNode(IncrOpIndexedNode* node) { 256 void AstPrinter::VisitIncrOpIndexedNode(IncrOpIndexedNode* node) {
262 VisitGenericAstNode(node); 257 VisitGenericAstNode(node);
263 } 258 }
264 259
265 260
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 ASSERT(node_sequence != NULL); 487 ASSERT(node_sequence != NULL);
493 AstPrinter ast_printer; 488 AstPrinter ast_printer;
494 const char* function_name = 489 const char* function_name =
495 parsed_function.function().ToFullyQualifiedCString(); 490 parsed_function.function().ToFullyQualifiedCString();
496 OS::Print("Ast for function '%s' {\n", function_name); 491 OS::Print("Ast for function '%s' {\n", function_name);
497 node_sequence->Visit(&ast_printer); 492 node_sequence->Visit(&ast_printer);
498 OS::Print("}\n"); 493 OS::Print("}\n");
499 } 494 }
500 495
501 } // namespace dart 496 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698