Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: runtime/vm/il_printer.cc

Issue 2432903002: Revert "Add DoubleTestOp instruction" (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 719
720 720
721 void BinaryDoubleOpInstr::PrintOperandsTo(BufferFormatter* f) const { 721 void BinaryDoubleOpInstr::PrintOperandsTo(BufferFormatter* f) const {
722 f->Print("%s, ", Token::Str(op_kind())); 722 f->Print("%s, ", Token::Str(op_kind()));
723 left()->PrintTo(f); 723 left()->PrintTo(f);
724 f->Print(", "); 724 f->Print(", ");
725 right()->PrintTo(f); 725 right()->PrintTo(f);
726 } 726 }
727 727
728 728
729 void DoubleTestOpInstr::PrintOperandsTo(BufferFormatter* f) const {
730 switch (op_kind()) {
731 case MethodRecognizer::kDouble_getIsNaN:
732 f->Print("IsNaN ");
733 break;
734 case MethodRecognizer::kDouble_getIsInfinite:
735 f->Print("IsInfinite ");
736 break;
737 default:
738 UNREACHABLE();
739 }
740 value()->PrintTo(f);
741 }
742
743
744 void BinaryFloat32x4OpInstr::PrintOperandsTo(BufferFormatter* f) const { 729 void BinaryFloat32x4OpInstr::PrintOperandsTo(BufferFormatter* f) const {
745 f->Print("%s, ", Token::Str(op_kind())); 730 f->Print("%s, ", Token::Str(op_kind()));
746 left()->PrintTo(f); 731 left()->PrintTo(f);
747 f->Print(", "); 732 f->Print(", ");
748 right()->PrintTo(f); 733 right()->PrintTo(f);
749 } 734 }
750 735
751 736
752 void BinaryFloat64x2OpInstr::PrintOperandsTo(BufferFormatter* f) const { 737 void BinaryFloat64x2OpInstr::PrintOperandsTo(BufferFormatter* f) const {
753 f->Print("%s, ", Token::Str(op_kind())); 738 f->Print("%s, ", Token::Str(op_kind()));
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 } 1307 }
1323 1308
1324 1309
1325 bool FlowGraphPrinter::ShouldPrint(const Function& function) { 1310 bool FlowGraphPrinter::ShouldPrint(const Function& function) {
1326 return false; 1311 return false;
1327 } 1312 }
1328 1313
1329 #endif // !PRODUCT 1314 #endif // !PRODUCT
1330 1315
1331 } // namespace dart 1316 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698