| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |