| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 (*phis_)[i]->PrintTo(f); | 380 (*phis_)[i]->PrintTo(f); |
| 381 } | 381 } |
| 382 } | 382 } |
| 383 } | 383 } |
| 384 | 384 |
| 385 | 385 |
| 386 void PhiInstr::PrintTo(BufferFormatter* f) const { | 386 void PhiInstr::PrintTo(BufferFormatter* f) const { |
| 387 f->Print(" v%d <- phi(", ssa_temp_index()); | 387 f->Print(" v%d <- phi(", ssa_temp_index()); |
| 388 for (intptr_t i = 0; i < inputs_.length(); ++i) { | 388 for (intptr_t i = 0; i < inputs_.length(); ++i) { |
| 389 if (inputs_[i] != NULL) inputs_[i]->PrintTo(f); | 389 if (inputs_[i] != NULL) inputs_[i]->PrintTo(f); |
| 390 if (i < inputs_.length() - 1) f->Print(","); | 390 if (i < inputs_.length() - 1) f->Print(", "); |
| 391 } | 391 } |
| 392 f->Print(")"); | 392 f->Print(")"); |
| 393 } | 393 } |
| 394 | 394 |
| 395 | 395 |
| 396 void ParameterInstr::PrintTo(BufferFormatter* f) const { | 396 void ParameterInstr::PrintTo(BufferFormatter* f) const { |
| 397 f->Print(" v%d <- parameter(%d)", | 397 f->Print(" v%d <- parameter(%d)", |
| 398 HasSSATemp() ? ssa_temp_index() : temp_index(), | 398 HasSSATemp() ? ssa_temp_index() : temp_index(), |
| 399 index()); | 399 index()); |
| 400 } | 400 } |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 if ((i < locations_.length()) && !locations_[i].IsInvalid()) { | 730 if ((i < locations_.length()) && !locations_[i].IsInvalid()) { |
| 731 f->Print(" ["); | 731 f->Print(" ["); |
| 732 locations_[i].PrintTo(f); | 732 locations_[i].PrintTo(f); |
| 733 f->Print("]"); | 733 f->Print("]"); |
| 734 } | 734 } |
| 735 } | 735 } |
| 736 f->Print(" }"); | 736 f->Print(" }"); |
| 737 } | 737 } |
| 738 | 738 |
| 739 } // namespace dart | 739 } // namespace dart |
| OLD | NEW |