| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 454 |
| 455 void GraphEntryInstr::PrintTo(BufferFormatter* f) const { | 455 void GraphEntryInstr::PrintTo(BufferFormatter* f) const { |
| 456 f->Print("B%"Pd"[graph]", block_id()); | 456 f->Print("B%"Pd"[graph]", block_id()); |
| 457 if ((constant_null() != NULL) || (start_env() != NULL)) { | 457 if ((constant_null() != NULL) || (start_env() != NULL)) { |
| 458 f->Print(" {"); | 458 f->Print(" {"); |
| 459 if (constant_null() != NULL) { | 459 if (constant_null() != NULL) { |
| 460 f->Print("\n "); | 460 f->Print("\n "); |
| 461 constant_null()->PrintTo(f); | 461 constant_null()->PrintTo(f); |
| 462 } | 462 } |
| 463 if (start_env() != NULL) { | 463 if (start_env() != NULL) { |
| 464 for (intptr_t i = 0; i < start_env()->values().length(); ++i) { | 464 for (intptr_t i = 0; i < start_env()->Length(); ++i) { |
| 465 Definition* def = start_env()->values()[i]->definition(); | 465 Definition* def = start_env()->ValueAt(i)->definition(); |
| 466 if (def->IsParameter()) { | 466 if (def->IsParameter()) { |
| 467 f->Print("\n "); | 467 f->Print("\n "); |
| 468 def->PrintTo(f); | 468 def->PrintTo(f); |
| 469 } | 469 } |
| 470 } | 470 } |
| 471 } | 471 } |
| 472 f->Print("\n}"); | 472 f->Print("\n}"); |
| 473 } | 473 } |
| 474 } | 474 } |
| 475 | 475 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 for (intptr_t i = 0; i < values_.length(); ++i) { | 797 for (intptr_t i = 0; i < values_.length(); ++i) { |
| 798 if (i > 0) f->Print(", "); | 798 if (i > 0) f->Print(", "); |
| 799 values_[i]->PrintTo(f); | 799 values_[i]->PrintTo(f); |
| 800 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { | 800 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { |
| 801 f->Print(" ["); | 801 f->Print(" ["); |
| 802 locations_[i].PrintTo(f); | 802 locations_[i].PrintTo(f); |
| 803 f->Print("]"); | 803 f->Print("]"); |
| 804 } | 804 } |
| 805 } | 805 } |
| 806 f->Print(" }"); | 806 f->Print(" }"); |
| 807 if (outer_ != NULL) outer_->PrintTo(f); |
| 807 } | 808 } |
| 808 | 809 |
| 809 } // namespace dart | 810 } // namespace dart |
| OLD | NEW |