| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 f->Print("t%d", definition()->temp_index()); | 155 f->Print("t%d", definition()->temp_index()); |
| 156 } | 156 } |
| 157 } | 157 } |
| 158 | 158 |
| 159 | 159 |
| 160 void ConstantVal::PrintTo(BufferFormatter* f) const { | 160 void ConstantVal::PrintTo(BufferFormatter* f) const { |
| 161 f->Print("#%s", value().ToCString()); | 161 f->Print("#%s", value().ToCString()); |
| 162 } | 162 } |
| 163 | 163 |
| 164 | 164 |
| 165 void MaterializeComp::PrintOperandsTo(BufferFormatter* f) const { |
| 166 constant_val()->PrintTo(f); |
| 167 } |
| 168 |
| 169 |
| 165 void AssertAssignableComp::PrintOperandsTo(BufferFormatter* f) const { | 170 void AssertAssignableComp::PrintOperandsTo(BufferFormatter* f) const { |
| 166 value()->PrintTo(f); | 171 value()->PrintTo(f); |
| 167 f->Print(", %s, '%s'%s", | 172 f->Print(", %s, '%s'%s", |
| 168 String::Handle(dst_type().Name()).ToCString(), | 173 String::Handle(dst_type().Name()).ToCString(), |
| 169 dst_name().ToCString(), | 174 dst_name().ToCString(), |
| 170 is_eliminated() ? " eliminated" : ""); | 175 is_eliminated() ? " eliminated" : ""); |
| 171 f->Print(" instantiator("); | 176 f->Print(" instantiator("); |
| 172 instantiator()->PrintTo(f); | 177 instantiator()->PrintTo(f); |
| 173 f->Print(")"); | 178 f->Print(")"); |
| 174 f->Print(" instantiator_type_arguments("); | 179 f->Print(" instantiator_type_arguments("); |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { | 812 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { |
| 808 f->Print(" ["); | 813 f->Print(" ["); |
| 809 locations_[i].PrintTo(f); | 814 locations_[i].PrintTo(f); |
| 810 f->Print("]"); | 815 f->Print("]"); |
| 811 } | 816 } |
| 812 } | 817 } |
| 813 f->Print(" }"); | 818 f->Print(" }"); |
| 814 } | 819 } |
| 815 | 820 |
| 816 } // namespace dart | 821 } // namespace dart |
| OLD | NEW |