| 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 } | 807 } |
| 808 } | 808 } |
| 809 | 809 |
| 810 | 810 |
| 811 void CatchBlockEntryInstr::PrintTo(BufferFormatter* f) const { | 811 void CatchBlockEntryInstr::PrintTo(BufferFormatter* f) const { |
| 812 f->Print("B%"Pd"[target catch %"Pd"]", block_id(), catch_try_index()); | 812 f->Print("B%"Pd"[target catch %"Pd"]", block_id(), catch_try_index()); |
| 813 if (HasParallelMove()) { | 813 if (HasParallelMove()) { |
| 814 f->Print(" "); | 814 f->Print(" "); |
| 815 parallel_move()->PrintTo(f); | 815 parallel_move()->PrintTo(f); |
| 816 } | 816 } |
| 817 |
| 818 const GrowableArray<Definition*>& defns = initial_definitions_; |
| 819 if (defns.length() > 0) { |
| 820 f->Print(" {"); |
| 821 for (intptr_t i = 0; i < defns.length(); ++i) { |
| 822 Definition* def = defns[i]; |
| 823 f->Print("\n "); |
| 824 def->PrintTo(f); |
| 825 } |
| 826 f->Print("\n}"); |
| 827 } |
| 817 } | 828 } |
| 818 | 829 |
| 819 | 830 |
| 820 void PushArgumentInstr::PrintOperandsTo(BufferFormatter* f) const { | 831 void PushArgumentInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 821 value()->PrintTo(f); | 832 value()->PrintTo(f); |
| 822 } | 833 } |
| 823 | 834 |
| 824 | 835 |
| 825 void GotoInstr::PrintTo(BufferFormatter* f) const { | 836 void GotoInstr::PrintTo(BufferFormatter* f) const { |
| 826 if (HasParallelMove()) { | 837 if (HasParallelMove()) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 f->Print(" ["); | 882 f->Print(" ["); |
| 872 locations_[i].PrintTo(f); | 883 locations_[i].PrintTo(f); |
| 873 f->Print("]"); | 884 f->Print("]"); |
| 874 } | 885 } |
| 875 } | 886 } |
| 876 f->Print(" }"); | 887 f->Print(" }"); |
| 877 if (outer_ != NULL) outer_->PrintTo(f); | 888 if (outer_ != NULL) outer_->PrintTo(f); |
| 878 } | 889 } |
| 879 | 890 |
| 880 } // namespace dart | 891 } // namespace dart |
| OLD | NEW |