| 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 #include "vm/parser.h" | 9 #include "vm/parser.h" |
| 10 | 10 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 void ConstantVal::PrintTo(BufferFormatter* f) const { | 161 void ConstantVal::PrintTo(BufferFormatter* f) const { |
| 162 f->Print("#%s", value().ToCString()); | 162 f->Print("#%s", value().ToCString()); |
| 163 } | 163 } |
| 164 | 164 |
| 165 | 165 |
| 166 void AssertAssignableComp::PrintOperandsTo(BufferFormatter* f) const { | 166 void AssertAssignableComp::PrintOperandsTo(BufferFormatter* f) const { |
| 167 value()->PrintTo(f); | 167 value()->PrintTo(f); |
| 168 f->Print(", %s, '%s'%s", | 168 f->Print(", %s, '%s'%s", |
| 169 String::Handle(dst_type().Name()).ToCString(), | 169 String::Handle(dst_type().Name()).ToCString(), |
| 170 dst_name().ToCString(), | 170 dst_name().ToCString(), |
| 171 IsEliminated() ? " eliminated" : ""); | 171 is_eliminated() ? " eliminated" : ""); |
| 172 f->Print(" instantiator("); | 172 f->Print(" instantiator("); |
| 173 instantiator()->PrintTo(f); | 173 instantiator()->PrintTo(f); |
| 174 f->Print(")"); | 174 f->Print(")"); |
| 175 f->Print(" instantiator_type_arguments("); | 175 f->Print(" instantiator_type_arguments("); |
| 176 instantiator_type_arguments()->PrintTo(f); | 176 instantiator_type_arguments()->PrintTo(f); |
| 177 f->Print(")"); | 177 f->Print(")"); |
| 178 } | 178 } |
| 179 | 179 |
| 180 | 180 |
| 181 void AssertBooleanComp::PrintOperandsTo(BufferFormatter* f) const { |
| 182 value()->PrintTo(f); |
| 183 f->Print("%s", is_eliminated() ? " eliminated" : ""); |
| 184 } |
| 185 |
| 186 |
| 181 void ClosureCallComp::PrintOperandsTo(BufferFormatter* f) const { | 187 void ClosureCallComp::PrintOperandsTo(BufferFormatter* f) const { |
| 182 for (intptr_t i = 0; i < ArgumentCount(); ++i) { | 188 for (intptr_t i = 0; i < ArgumentCount(); ++i) { |
| 183 if (i > 0) f->Print(", "); | 189 if (i > 0) f->Print(", "); |
| 184 ArgumentAt(i)->value()->PrintTo(f); | 190 ArgumentAt(i)->value()->PrintTo(f); |
| 185 } | 191 } |
| 186 } | 192 } |
| 187 | 193 |
| 188 | 194 |
| 189 void InstanceCallComp::PrintOperandsTo(BufferFormatter* f) const { | 195 void InstanceCallComp::PrintOperandsTo(BufferFormatter* f) const { |
| 190 f->Print("%s", function_name().ToCString()); | 196 f->Print("%s", function_name().ToCString()); |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { | 809 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { |
| 804 f->Print(" ["); | 810 f->Print(" ["); |
| 805 locations_[i].PrintTo(f); | 811 locations_[i].PrintTo(f); |
| 806 f->Print("]"); | 812 f->Print("]"); |
| 807 } | 813 } |
| 808 } | 814 } |
| 809 f->Print(" }"); | 815 f->Print(" }"); |
| 810 } | 816 } |
| 811 | 817 |
| 812 } // namespace dart | 818 } // namespace dart |
| OLD | NEW |