| OLD | NEW |
| 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 #include "vm/il_printer.h" | 5 #include "vm/il_printer.h" |
| 6 | 6 |
| 7 #include "vm/intermediate_language.h" | 7 #include "vm/intermediate_language.h" |
| 8 #include "vm/os.h" | 8 #include "vm/os.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 OS::Print("#%s", val->value().ToCString()); | 43 OS::Print("#%s", val->value().ToCString()); |
| 44 } | 44 } |
| 45 | 45 |
| 46 | 46 |
| 47 void FlowGraphPrinter::VisitAssertAssignable(AssertAssignableComp* comp) { | 47 void FlowGraphPrinter::VisitAssertAssignable(AssertAssignableComp* comp) { |
| 48 OS::Print("AssertAssignable("); | 48 OS::Print("AssertAssignable("); |
| 49 comp->value()->Accept(this); | 49 comp->value()->Accept(this); |
| 50 OS::Print(", %s, '%s'", | 50 OS::Print(", %s, '%s'", |
| 51 String::Handle(comp->dst_type().Name()).ToCString(), | 51 String::Handle(comp->dst_type().Name()).ToCString(), |
| 52 comp->dst_name().ToCString()); | 52 comp->dst_name().ToCString()); |
| 53 if (comp->instantiator() != NULL) { |
| 54 OS::Print(" (instantiator:"); |
| 55 comp->instantiator()->Accept(this); |
| 56 OS::Print(")"); |
| 57 } |
| 53 if (comp->instantiator_type_arguments() != NULL) { | 58 if (comp->instantiator_type_arguments() != NULL) { |
| 54 OS::Print(" (instantiator:"); | 59 OS::Print(" (instantiator-type-arg:"); |
| 55 comp->instantiator_type_arguments()->Accept(this); | 60 comp->instantiator_type_arguments()->Accept(this); |
| 61 OS::Print(")"); |
| 56 } | 62 } |
| 57 OS::Print(")"); | 63 OS::Print(")"); |
| 58 } | 64 } |
| 59 | 65 |
| 60 | 66 |
| 61 void FlowGraphPrinter::VisitAssertBoolean(AssertBooleanComp* comp) { | 67 void FlowGraphPrinter::VisitAssertBoolean(AssertBooleanComp* comp) { |
| 62 OS::Print("AssertBoolean("); | 68 OS::Print("AssertBoolean("); |
| 63 comp->value()->Accept(this); | 69 comp->value()->Accept(this); |
| 64 OS::Print(")"); | 70 OS::Print(")"); |
| 65 } | 71 } |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 void FlowGraphPrinter::VisitBranch(BranchInstr* instr) { | 396 void FlowGraphPrinter::VisitBranch(BranchInstr* instr) { |
| 391 OS::Print(" if "); | 397 OS::Print(" if "); |
| 392 instr->value()->Accept(this); | 398 instr->value()->Accept(this); |
| 393 OS::Print(" goto (%d, %d)", | 399 OS::Print(" goto (%d, %d)", |
| 394 reverse_index(instr->true_successor()->postorder_number()), | 400 reverse_index(instr->true_successor()->postorder_number()), |
| 395 reverse_index(instr->false_successor()->postorder_number())); | 401 reverse_index(instr->false_successor()->postorder_number())); |
| 396 } | 402 } |
| 397 | 403 |
| 398 | 404 |
| 399 } // namespace dart | 405 } // namespace dart |
| OLD | NEW |