| 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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 | 831 |
| 832 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { | 832 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { |
| 833 VisitRO(this, node, kSSEFloat64ToInt32); | 833 VisitRO(this, node, kSSEFloat64ToInt32); |
| 834 } | 834 } |
| 835 | 835 |
| 836 | 836 |
| 837 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 837 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
| 838 VisitRO(this, node, kSSEFloat64ToUint32); | 838 VisitRO(this, node, kSSEFloat64ToUint32); |
| 839 } | 839 } |
| 840 | 840 |
| 841 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) { |
| 842 VisitRO(this, node, kSSEFloat64ToUint32); |
| 843 } |
| 841 | 844 |
| 842 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { | 845 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { |
| 843 VisitRO(this, node, kSSEFloat64ToFloat32); | 846 VisitRO(this, node, kSSEFloat64ToFloat32); |
| 844 } | 847 } |
| 845 | 848 |
| 846 | 849 |
| 847 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { | 850 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { |
| 848 switch (TruncationModeOf(node->op())) { | 851 switch (TruncationModeOf(node->op())) { |
| 849 case TruncationMode::kJavaScript: | 852 case TruncationMode::kJavaScript: |
| 850 return VisitRR(this, node, kArchTruncateDoubleToI); | 853 return VisitRR(this, node, kArchTruncateDoubleToI); |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 MachineOperatorBuilder::kFloat64RoundTruncate | | 1534 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1532 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1535 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 1533 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1536 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1534 } | 1537 } |
| 1535 return flags; | 1538 return flags; |
| 1536 } | 1539 } |
| 1537 | 1540 |
| 1538 } // namespace compiler | 1541 } // namespace compiler |
| 1539 } // namespace internal | 1542 } // namespace internal |
| 1540 } // namespace v8 | 1543 } // namespace v8 |
| OLD | NEW |