| 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/log.h" | 8 #include "vm/log.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/os.h" | 10 #include "vm/os.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 node->VisitChildren(this); | 23 node->VisitChildren(this); |
| 24 ISL_Print(")"); | 24 ISL_Print(")"); |
| 25 } | 25 } |
| 26 | 26 |
| 27 | 27 |
| 28 void AstPrinter::VisitSequenceNode(SequenceNode* node) { | 28 void AstPrinter::VisitSequenceNode(SequenceNode* node) { |
| 29 indent_++; | 29 indent_++; |
| 30 ISL_Print("(%s (scope \"%p\")", node->PrettyName(), node->scope()); | 30 ISL_Print("(%s (scope \"%p\")", node->PrettyName(), node->scope()); |
| 31 for (int i = 0; i < node->length(); ++i) { | 31 for (int i = 0; i < node->length(); ++i) { |
| 32 ISL_Print("\n"); | 32 ISL_Print("\n"); |
| 33 for (intptr_t i = 0; i < indent_; i++) { | 33 for (intptr_t p = 0; p < indent_; p++) { |
| 34 ISL_Print(" "); | 34 ISL_Print(" "); |
| 35 } | 35 } |
| 36 node->NodeAt(i)->Visit(this); | 36 node->NodeAt(i)->Visit(this); |
| 37 } | 37 } |
| 38 ISL_Print(")"); | 38 ISL_Print(")"); |
| 39 indent_--; | 39 indent_--; |
| 40 } | 40 } |
| 41 | 41 |
| 42 | 42 |
| 43 void AstPrinter::VisitCloneContextNode(CloneContextNode* node) { | 43 void AstPrinter::VisitCloneContextNode(CloneContextNode* node) { |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 ASSERT(node_sequence != NULL); | 547 ASSERT(node_sequence != NULL); |
| 548 AstPrinter ast_printer; | 548 AstPrinter ast_printer; |
| 549 const char* function_name = | 549 const char* function_name = |
| 550 parsed_function.function().ToFullyQualifiedCString(); | 550 parsed_function.function().ToFullyQualifiedCString(); |
| 551 ISL_Print("Ast for function '%s' {\n", function_name); | 551 ISL_Print("Ast for function '%s' {\n", function_name); |
| 552 node_sequence->Visit(&ast_printer); | 552 node_sequence->Visit(&ast_printer); |
| 553 ISL_Print("}\n"); | 553 ISL_Print("}\n"); |
| 554 } | 554 } |
| 555 | 555 |
| 556 } // namespace dart | 556 } // namespace dart |
| OLD | NEW |