OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/compiler/instruction-selector.h" | 5 #include "src/compiler/instruction-selector.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/compiler/instruction-selector-impl.h" | 9 #include "src/compiler/instruction-selector-impl.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 case IrOpcode::kTruncateFloat64ToFloat32: | 682 case IrOpcode::kTruncateFloat64ToFloat32: |
683 return kMachFloat32; | 683 return kMachFloat32; |
684 case IrOpcode::kTruncateFloat64ToInt32: | 684 case IrOpcode::kTruncateFloat64ToInt32: |
685 case IrOpcode::kTruncateInt64ToInt32: | 685 case IrOpcode::kTruncateInt64ToInt32: |
686 return kMachInt32; | 686 return kMachInt32; |
687 case IrOpcode::kFloat64Add: | 687 case IrOpcode::kFloat64Add: |
688 case IrOpcode::kFloat64Sub: | 688 case IrOpcode::kFloat64Sub: |
689 case IrOpcode::kFloat64Mul: | 689 case IrOpcode::kFloat64Mul: |
690 case IrOpcode::kFloat64Div: | 690 case IrOpcode::kFloat64Div: |
691 case IrOpcode::kFloat64Mod: | 691 case IrOpcode::kFloat64Mod: |
| 692 case IrOpcode::kFloat64Max: |
| 693 case IrOpcode::kFloat64Min: |
692 case IrOpcode::kFloat64Sqrt: | 694 case IrOpcode::kFloat64Sqrt: |
693 case IrOpcode::kFloat64RoundDown: | 695 case IrOpcode::kFloat64RoundDown: |
694 case IrOpcode::kFloat64RoundTruncate: | 696 case IrOpcode::kFloat64RoundTruncate: |
695 case IrOpcode::kFloat64RoundTiesAway: | 697 case IrOpcode::kFloat64RoundTiesAway: |
696 return kMachFloat64; | 698 return kMachFloat64; |
697 case IrOpcode::kFloat64Equal: | 699 case IrOpcode::kFloat64Equal: |
698 case IrOpcode::kFloat64LessThan: | 700 case IrOpcode::kFloat64LessThan: |
699 case IrOpcode::kFloat64LessThanOrEqual: | 701 case IrOpcode::kFloat64LessThanOrEqual: |
700 return kMachBool; | 702 return kMachBool; |
701 case IrOpcode::kFloat64ExtractLowWord32: | 703 case IrOpcode::kFloat64ExtractLowWord32: |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 case IrOpcode::kFloat64Add: | 887 case IrOpcode::kFloat64Add: |
886 return MarkAsDouble(node), VisitFloat64Add(node); | 888 return MarkAsDouble(node), VisitFloat64Add(node); |
887 case IrOpcode::kFloat64Sub: | 889 case IrOpcode::kFloat64Sub: |
888 return MarkAsDouble(node), VisitFloat64Sub(node); | 890 return MarkAsDouble(node), VisitFloat64Sub(node); |
889 case IrOpcode::kFloat64Mul: | 891 case IrOpcode::kFloat64Mul: |
890 return MarkAsDouble(node), VisitFloat64Mul(node); | 892 return MarkAsDouble(node), VisitFloat64Mul(node); |
891 case IrOpcode::kFloat64Div: | 893 case IrOpcode::kFloat64Div: |
892 return MarkAsDouble(node), VisitFloat64Div(node); | 894 return MarkAsDouble(node), VisitFloat64Div(node); |
893 case IrOpcode::kFloat64Mod: | 895 case IrOpcode::kFloat64Mod: |
894 return MarkAsDouble(node), VisitFloat64Mod(node); | 896 return MarkAsDouble(node), VisitFloat64Mod(node); |
| 897 case IrOpcode::kFloat64Min: |
| 898 return MarkAsDouble(node), VisitFloat64Min(node); |
| 899 case IrOpcode::kFloat64Max: |
| 900 return MarkAsDouble(node), VisitFloat64Max(node); |
895 case IrOpcode::kFloat64Sqrt: | 901 case IrOpcode::kFloat64Sqrt: |
896 return MarkAsDouble(node), VisitFloat64Sqrt(node); | 902 return MarkAsDouble(node), VisitFloat64Sqrt(node); |
897 case IrOpcode::kFloat64Equal: | 903 case IrOpcode::kFloat64Equal: |
898 return VisitFloat64Equal(node); | 904 return VisitFloat64Equal(node); |
899 case IrOpcode::kFloat64LessThan: | 905 case IrOpcode::kFloat64LessThan: |
900 return VisitFloat64LessThan(node); | 906 return VisitFloat64LessThan(node); |
901 case IrOpcode::kFloat64LessThanOrEqual: | 907 case IrOpcode::kFloat64LessThanOrEqual: |
902 return VisitFloat64LessThanOrEqual(node); | 908 return VisitFloat64LessThanOrEqual(node); |
903 case IrOpcode::kFloat64RoundDown: | 909 case IrOpcode::kFloat64RoundDown: |
904 return MarkAsDouble(node), VisitFloat64RoundDown(node); | 910 return MarkAsDouble(node), VisitFloat64RoundDown(node); |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 MachineOperatorBuilder::Flags | 1274 MachineOperatorBuilder::Flags |
1269 InstructionSelector::SupportedMachineOperatorFlags() { | 1275 InstructionSelector::SupportedMachineOperatorFlags() { |
1270 return MachineOperatorBuilder::Flag::kNoFlags; | 1276 return MachineOperatorBuilder::Flag::kNoFlags; |
1271 } | 1277 } |
1272 | 1278 |
1273 #endif // !V8_TURBOFAN_BACKEND | 1279 #endif // !V8_TURBOFAN_BACKEND |
1274 | 1280 |
1275 } // namespace compiler | 1281 } // namespace compiler |
1276 } // namespace internal | 1282 } // namespace internal |
1277 } // namespace v8 | 1283 } // namespace v8 |
OLD | NEW |