| 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/flow_graph_range_analysis.h" | 7 #include "vm/flow_graph_range_analysis.h" |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 #include "vm/os.h" | 9 #include "vm/os.h" |
| 10 #include "vm/parser.h" | 10 #include "vm/parser.h" |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 | 697 |
| 698 void CheckedSmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 698 void CheckedSmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 699 f->Print("%s", Token::Str(op_kind())); | 699 f->Print("%s", Token::Str(op_kind())); |
| 700 f->Print(", "); | 700 f->Print(", "); |
| 701 left()->PrintTo(f); | 701 left()->PrintTo(f); |
| 702 f->Print(", "); | 702 f->Print(", "); |
| 703 right()->PrintTo(f); | 703 right()->PrintTo(f); |
| 704 } | 704 } |
| 705 | 705 |
| 706 | 706 |
| 707 void CheckedSmiComparisonInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 708 f->Print("%s", Token::Str(kind())); |
| 709 f->Print(", "); |
| 710 left()->PrintTo(f); |
| 711 f->Print(", "); |
| 712 right()->PrintTo(f); |
| 713 } |
| 714 |
| 715 |
| 707 void BinaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 716 void BinaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 708 f->Print("%s", Token::Str(op_kind())); | 717 f->Print("%s", Token::Str(op_kind())); |
| 709 if (is_truncating()) { | 718 if (is_truncating()) { |
| 710 f->Print(" [tr]"); | 719 f->Print(" [tr]"); |
| 711 } else if (!can_overflow()) { | 720 } else if (!can_overflow()) { |
| 712 f->Print(" [-o]"); | 721 f->Print(" [-o]"); |
| 713 } | 722 } |
| 714 f->Print(", "); | 723 f->Print(", "); |
| 715 left()->PrintTo(f); | 724 left()->PrintTo(f); |
| 716 f->Print(", "); | 725 f->Print(", "); |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 } | 1331 } |
| 1323 | 1332 |
| 1324 | 1333 |
| 1325 bool FlowGraphPrinter::ShouldPrint(const Function& function) { | 1334 bool FlowGraphPrinter::ShouldPrint(const Function& function) { |
| 1326 return false; | 1335 return false; |
| 1327 } | 1336 } |
| 1328 | 1337 |
| 1329 #endif // !PRODUCT | 1338 #endif // !PRODUCT |
| 1330 | 1339 |
| 1331 } // namespace dart | 1340 } // namespace dart |
| OLD | NEW |