| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 void PolymorphicInstanceCallComp::PrintTo(BufferFormatter* f) const { | 195 void PolymorphicInstanceCallComp::PrintTo(BufferFormatter* f) const { |
| 196 f->Print("%s(", DebugName()); | 196 f->Print("%s(", DebugName()); |
| 197 instance_call()->PrintOperandsTo(f); | 197 instance_call()->PrintOperandsTo(f); |
| 198 f->Print(") "); | 198 f->Print(") "); |
| 199 if (HasICData()) { | 199 if (HasICData()) { |
| 200 PrintICData(f, *ic_data()); | 200 PrintICData(f, *ic_data()); |
| 201 } | 201 } |
| 202 } | 202 } |
| 203 | 203 |
| 204 | 204 |
| 205 void InstanceSetterComp::PrintOperandsTo(BufferFormatter* f) const { | |
| 206 f->Print("%s", field_name().ToCString()); | |
| 207 for (intptr_t i = 0; i < ArgumentCount(); ++i) { | |
| 208 f->Print(", "); | |
| 209 ArgumentAt(i)->value()->PrintTo(f); | |
| 210 } | |
| 211 } | |
| 212 | |
| 213 | |
| 214 void StrictCompareComp::PrintOperandsTo(BufferFormatter* f) const { | 205 void StrictCompareComp::PrintOperandsTo(BufferFormatter* f) const { |
| 215 f->Print("%s, ", Token::Str(kind())); | 206 f->Print("%s, ", Token::Str(kind())); |
| 216 left()->PrintTo(f); | 207 left()->PrintTo(f); |
| 217 f->Print(", "); | 208 f->Print(", "); |
| 218 right()->PrintTo(f); | 209 right()->PrintTo(f); |
| 219 } | 210 } |
| 220 | 211 |
| 221 | 212 |
| 222 void EqualityCompareComp::PrintOperandsTo(BufferFormatter* f) const { | 213 void EqualityCompareComp::PrintOperandsTo(BufferFormatter* f) const { |
| 223 left()->PrintTo(f); | 214 left()->PrintTo(f); |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 if ((i < locations_.length()) && !locations_[i].IsInvalid()) { | 778 if ((i < locations_.length()) && !locations_[i].IsInvalid()) { |
| 788 f->Print(" ["); | 779 f->Print(" ["); |
| 789 locations_[i].PrintTo(f); | 780 locations_[i].PrintTo(f); |
| 790 f->Print("]"); | 781 f->Print("]"); |
| 791 } | 782 } |
| 792 } | 783 } |
| 793 f->Print(" }"); | 784 f->Print(" }"); |
| 794 } | 785 } |
| 795 | 786 |
| 796 } // namespace dart | 787 } // namespace dart |
| OLD | NEW |