| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 if (i != 0) f->Print(", "); | 227 if (i != 0) f->Print(", "); |
| 228 ElementAt(i)->PrintTo(f); | 228 ElementAt(i)->PrintTo(f); |
| 229 } | 229 } |
| 230 if (ElementCount() > 0) f->Print(", "); | 230 if (ElementCount() > 0) f->Print(", "); |
| 231 element_type()->PrintTo(f); | 231 element_type()->PrintTo(f); |
| 232 } | 232 } |
| 233 | 233 |
| 234 | 234 |
| 235 void CreateClosureComp::PrintOperandsTo(BufferFormatter* f) const { | 235 void CreateClosureComp::PrintOperandsTo(BufferFormatter* f) const { |
| 236 f->Print("%s", function().ToCString()); | 236 f->Print("%s", function().ToCString()); |
| 237 if (type_arguments() != NULL) { | 237 f->Print(", "); |
| 238 f->Print(", "); | 238 type_arguments()->PrintTo(f); |
| 239 type_arguments()->PrintTo(f); | 239 f->Print(", "); |
| 240 } | 240 receiver()->PrintTo(f); |
| 241 } | 241 } |
| 242 | 242 |
| 243 | 243 |
| 244 void LoadVMFieldComp::PrintOperandsTo(BufferFormatter* f) const { | 244 void LoadVMFieldComp::PrintOperandsTo(BufferFormatter* f) const { |
| 245 value()->PrintTo(f); | 245 value()->PrintTo(f); |
| 246 f->Print(", %d", offset_in_bytes()); | 246 f->Print(", %d", offset_in_bytes()); |
| 247 } | 247 } |
| 248 | 248 |
| 249 | 249 |
| 250 void StoreVMFieldComp::PrintOperandsTo(BufferFormatter* f) const { | 250 void StoreVMFieldComp::PrintOperandsTo(BufferFormatter* f) const { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 f->Print(" %s ", DebugName()); | 345 f->Print(" %s ", DebugName()); |
| 346 f->Print("if "); | 346 f->Print("if "); |
| 347 value()->PrintTo(f); | 347 value()->PrintTo(f); |
| 348 f->Print(" goto (%d, %d)", | 348 f->Print(" goto (%d, %d)", |
| 349 true_successor()->block_id(), | 349 true_successor()->block_id(), |
| 350 false_successor()->block_id()); | 350 false_successor()->block_id()); |
| 351 } | 351 } |
| 352 | 352 |
| 353 | 353 |
| 354 } // namespace dart | 354 } // namespace dart |
| OLD | NEW |