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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 case IrOpcode::kChangeInt32ToInt64: | 744 case IrOpcode::kChangeInt32ToInt64: |
745 return VisitChangeInt32ToInt64(node); | 745 return VisitChangeInt32ToInt64(node); |
746 case IrOpcode::kChangeUint32ToUint64: | 746 case IrOpcode::kChangeUint32ToUint64: |
747 return VisitChangeUint32ToUint64(node); | 747 return VisitChangeUint32ToUint64(node); |
748 case IrOpcode::kTruncateFloat64ToFloat32: | 748 case IrOpcode::kTruncateFloat64ToFloat32: |
749 return MarkAsDouble(node), VisitTruncateFloat64ToFloat32(node); | 749 return MarkAsDouble(node), VisitTruncateFloat64ToFloat32(node); |
750 case IrOpcode::kTruncateFloat64ToInt32: | 750 case IrOpcode::kTruncateFloat64ToInt32: |
751 return VisitTruncateFloat64ToInt32(node); | 751 return VisitTruncateFloat64ToInt32(node); |
752 case IrOpcode::kTruncateInt64ToInt32: | 752 case IrOpcode::kTruncateInt64ToInt32: |
753 return VisitTruncateInt64ToInt32(node); | 753 return VisitTruncateInt64ToInt32(node); |
| 754 case IrOpcode::kFloat32Add: |
| 755 return MarkAsDouble(node), VisitFloat32Add(node); |
| 756 case IrOpcode::kFloat32Sub: |
| 757 return MarkAsDouble(node), VisitFloat32Sub(node); |
| 758 case IrOpcode::kFloat32Mul: |
| 759 return MarkAsDouble(node), VisitFloat32Mul(node); |
| 760 case IrOpcode::kFloat32Div: |
| 761 return MarkAsDouble(node), VisitFloat32Div(node); |
| 762 case IrOpcode::kFloat32Min: |
| 763 return MarkAsDouble(node), VisitFloat32Min(node); |
| 764 case IrOpcode::kFloat32Max: |
| 765 return MarkAsDouble(node), VisitFloat32Max(node); |
| 766 case IrOpcode::kFloat32Sqrt: |
| 767 return MarkAsDouble(node), VisitFloat32Sqrt(node); |
| 768 case IrOpcode::kFloat32Equal: |
| 769 return VisitFloat32Equal(node); |
| 770 case IrOpcode::kFloat32LessThan: |
| 771 return VisitFloat32LessThan(node); |
| 772 case IrOpcode::kFloat32LessThanOrEqual: |
| 773 return VisitFloat32LessThanOrEqual(node); |
754 case IrOpcode::kFloat64Add: | 774 case IrOpcode::kFloat64Add: |
755 return MarkAsDouble(node), VisitFloat64Add(node); | 775 return MarkAsDouble(node), VisitFloat64Add(node); |
756 case IrOpcode::kFloat64Sub: | 776 case IrOpcode::kFloat64Sub: |
757 return MarkAsDouble(node), VisitFloat64Sub(node); | 777 return MarkAsDouble(node), VisitFloat64Sub(node); |
758 case IrOpcode::kFloat64Mul: | 778 case IrOpcode::kFloat64Mul: |
759 return MarkAsDouble(node), VisitFloat64Mul(node); | 779 return MarkAsDouble(node), VisitFloat64Mul(node); |
760 case IrOpcode::kFloat64Div: | 780 case IrOpcode::kFloat64Div: |
761 return MarkAsDouble(node), VisitFloat64Div(node); | 781 return MarkAsDouble(node), VisitFloat64Div(node); |
762 case IrOpcode::kFloat64Mod: | 782 case IrOpcode::kFloat64Mod: |
763 return MarkAsDouble(node), VisitFloat64Mod(node); | 783 return MarkAsDouble(node), VisitFloat64Mod(node); |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 MachineOperatorBuilder::Flags | 1183 MachineOperatorBuilder::Flags |
1164 InstructionSelector::SupportedMachineOperatorFlags() { | 1184 InstructionSelector::SupportedMachineOperatorFlags() { |
1165 return MachineOperatorBuilder::Flag::kNoFlags; | 1185 return MachineOperatorBuilder::Flag::kNoFlags; |
1166 } | 1186 } |
1167 | 1187 |
1168 #endif // !V8_TURBOFAN_BACKEND | 1188 #endif // !V8_TURBOFAN_BACKEND |
1169 | 1189 |
1170 } // namespace compiler | 1190 } // namespace compiler |
1171 } // namespace internal | 1191 } // namespace internal |
1172 } // namespace v8 | 1192 } // namespace v8 |
OLD | NEW |