| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 } | 530 } |
| 531 | 531 |
| 532 | 532 |
| 533 void ReturnInstr::PrintTo(BufferFormatter* f) const { | 533 void ReturnInstr::PrintTo(BufferFormatter* f) const { |
| 534 f->Print(" %s:%d ", DebugName(), deopt_id()); | 534 f->Print(" %s:%d ", DebugName(), deopt_id()); |
| 535 value()->PrintTo(f); | 535 value()->PrintTo(f); |
| 536 } | 536 } |
| 537 | 537 |
| 538 | 538 |
| 539 void ThrowInstr::PrintTo(BufferFormatter* f) const { | 539 void ThrowInstr::PrintTo(BufferFormatter* f) const { |
| 540 f->Print(" %s:%d ", DebugName(), deopt_id()); | 540 f->Print(" %s" , DebugName()); |
| 541 } | 541 } |
| 542 | 542 |
| 543 | 543 |
| 544 void ReThrowInstr::PrintTo(BufferFormatter* f) const { | 544 void ReThrowInstr::PrintTo(BufferFormatter* f) const { |
| 545 f->Print(" %s:%d ", DebugName(), deopt_id()); | 545 f->Print(" %s ", DebugName()); |
| 546 } | 546 } |
| 547 | 547 |
| 548 | 548 |
| 549 void GotoInstr::PrintTo(BufferFormatter* f) const { | 549 void GotoInstr::PrintTo(BufferFormatter* f) const { |
| 550 if (HasParallelMove()) { | 550 if (HasParallelMove()) { |
| 551 parallel_move()->PrintTo(f); | 551 parallel_move()->PrintTo(f); |
| 552 } else { | 552 } else { |
| 553 f->Print(" "); | 553 f->Print(" "); |
| 554 } | 554 } |
| 555 f->Print(" goto %d", successor()->block_id()); | 555 f->Print(" goto %d", successor()->block_id()); |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 } | 772 } |
| 773 | 773 |
| 774 | 774 |
| 775 void ReturnInstr::PrintToVisualizer(BufferFormatter* f) const { | 775 void ReturnInstr::PrintToVisualizer(BufferFormatter* f) const { |
| 776 f->Print("_ %s:%d ", DebugName(), deopt_id()); | 776 f->Print("_ %s:%d ", DebugName(), deopt_id()); |
| 777 value()->PrintTo(f); | 777 value()->PrintTo(f); |
| 778 } | 778 } |
| 779 | 779 |
| 780 | 780 |
| 781 void ThrowInstr::PrintToVisualizer(BufferFormatter* f) const { | 781 void ThrowInstr::PrintToVisualizer(BufferFormatter* f) const { |
| 782 f->Print("_ %s:%d ", DebugName(), deopt_id()); | 782 f->Print("_ %s ", DebugName()); |
| 783 } | 783 } |
| 784 | 784 |
| 785 | 785 |
| 786 void ReThrowInstr::PrintToVisualizer(BufferFormatter* f) const { | 786 void ReThrowInstr::PrintToVisualizer(BufferFormatter* f) const { |
| 787 f->Print("_ %s:%d ", DebugName(), deopt_id()); | 787 f->Print("_ %s ", DebugName()); |
| 788 } | 788 } |
| 789 | 789 |
| 790 | 790 |
| 791 void GotoInstr::PrintToVisualizer(BufferFormatter* f) const { | 791 void GotoInstr::PrintToVisualizer(BufferFormatter* f) const { |
| 792 f->Print("_ goto B%d", successor()->block_id()); | 792 f->Print("_ goto B%d", successor()->block_id()); |
| 793 } | 793 } |
| 794 | 794 |
| 795 | 795 |
| 796 void BranchInstr::PrintToVisualizer(BufferFormatter* f) const { | 796 void BranchInstr::PrintToVisualizer(BufferFormatter* f) const { |
| 797 f->Print("_ %s ", DebugName()); | 797 f->Print("_ %s ", DebugName()); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 816 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { | 816 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { |
| 817 f->Print(" ["); | 817 f->Print(" ["); |
| 818 locations_[i].PrintTo(f); | 818 locations_[i].PrintTo(f); |
| 819 f->Print("]"); | 819 f->Print("]"); |
| 820 } | 820 } |
| 821 } | 821 } |
| 822 f->Print(" }"); | 822 f->Print(" }"); |
| 823 } | 823 } |
| 824 | 824 |
| 825 } // namespace dart | 825 } // namespace dart |
| OLD | NEW |