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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 Definition::PrintOperandsTo(f); | 658 Definition::PrintOperandsTo(f); |
659 } | 659 } |
660 | 660 |
661 | 661 |
662 void UnaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 662 void UnaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
663 f->Print("%s, ", Token::Str(op_kind())); | 663 f->Print("%s, ", Token::Str(op_kind())); |
664 value()->PrintTo(f); | 664 value()->PrintTo(f); |
665 } | 665 } |
666 | 666 |
667 | 667 |
| 668 void CheckedSmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 669 f->Print("%s", Token::Str(op_kind())); |
| 670 f->Print(", "); |
| 671 left()->PrintTo(f); |
| 672 f->Print(", "); |
| 673 right()->PrintTo(f); |
| 674 } |
| 675 |
| 676 |
668 void BinaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 677 void BinaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
669 f->Print("%s", Token::Str(op_kind())); | 678 f->Print("%s", Token::Str(op_kind())); |
670 if (is_truncating()) { | 679 if (is_truncating()) { |
671 f->Print(" [tr]"); | 680 f->Print(" [tr]"); |
672 } else if (!can_overflow()) { | 681 } else if (!can_overflow()) { |
673 f->Print(" [-o]"); | 682 f->Print(" [-o]"); |
674 } | 683 } |
675 f->Print(", "); | 684 f->Print(", "); |
676 left()->PrintTo(f); | 685 left()->PrintTo(f); |
677 f->Print(", "); | 686 f->Print(", "); |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 } | 1265 } |
1257 | 1266 |
1258 | 1267 |
1259 bool FlowGraphPrinter::ShouldPrint(const Function& function) { | 1268 bool FlowGraphPrinter::ShouldPrint(const Function& function) { |
1260 return false; | 1269 return false; |
1261 } | 1270 } |
1262 | 1271 |
1263 #endif // !PRODUCT | 1272 #endif // !PRODUCT |
1264 | 1273 |
1265 } // namespace dart | 1274 } // namespace dart |
OLD | NEW |