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/base/adapters.h" | 5 #include "src/base/adapters.h" |
6 #include "src/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 | 860 |
861 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { | 861 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { |
862 VisitRO(this, node, kSSEFloat64ToInt32); | 862 VisitRO(this, node, kSSEFloat64ToInt32); |
863 } | 863 } |
864 | 864 |
865 | 865 |
866 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 866 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
867 VisitRO(this, node, kSSEFloat64ToUint32); | 867 VisitRO(this, node, kSSEFloat64ToUint32); |
868 } | 868 } |
869 | 869 |
| 870 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) { |
| 871 VisitRO(this, node, kSSEFloat64ToUint32); |
| 872 } |
870 | 873 |
871 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { | 874 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { |
872 VisitRO(this, node, kSSEFloat64ToFloat32); | 875 VisitRO(this, node, kSSEFloat64ToFloat32); |
873 } | 876 } |
874 | 877 |
875 | 878 |
876 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { | 879 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { |
877 switch (TruncationModeOf(node->op())) { | 880 switch (TruncationModeOf(node->op())) { |
878 case TruncationMode::kJavaScript: | 881 case TruncationMode::kJavaScript: |
879 return VisitRR(this, node, kArchTruncateDoubleToI); | 882 return VisitRR(this, node, kArchTruncateDoubleToI); |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1560 MachineOperatorBuilder::kFloat64RoundTruncate | | 1563 MachineOperatorBuilder::kFloat64RoundTruncate | |
1561 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1564 MachineOperatorBuilder::kFloat32RoundTiesEven | |
1562 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1565 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1563 } | 1566 } |
1564 return flags; | 1567 return flags; |
1565 } | 1568 } |
1566 | 1569 |
1567 } // namespace compiler | 1570 } // namespace compiler |
1568 } // namespace internal | 1571 } // namespace internal |
1569 } // namespace v8 | 1572 } // namespace v8 |
OLD | NEW |