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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "src/base/adapters.h" | 7 #include "src/base/adapters.h" |
8 #include "src/compiler/instruction-selector-impl.h" | 8 #include "src/compiler/instruction-selector-impl.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 Emit(kSSEFloat32ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 839 Emit(kSSEFloat32ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
840 } | 840 } |
841 | 841 |
842 | 842 |
843 void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) { | 843 void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) { |
844 X64OperandGenerator g(this); | 844 X64OperandGenerator g(this); |
845 Emit(kSSEFloat64ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 845 Emit(kSSEFloat64ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
846 } | 846 } |
847 | 847 |
848 | 848 |
| 849 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { |
| 850 X64OperandGenerator g(this); |
| 851 Emit(kSSEFloat32ToUint64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 852 } |
| 853 |
| 854 |
849 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) { | 855 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) { |
850 X64OperandGenerator g(this); | 856 X64OperandGenerator g(this); |
851 Emit(kSSEFloat64ToUint64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 857 Emit(kSSEFloat64ToUint64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
852 } | 858 } |
853 | 859 |
854 | 860 |
855 void InstructionSelector::VisitChangeInt32ToInt64(Node* node) { | 861 void InstructionSelector::VisitChangeInt32ToInt64(Node* node) { |
856 X64OperandGenerator g(this); | 862 X64OperandGenerator g(this); |
857 Emit(kX64Movsxlq, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 863 Emit(kX64Movsxlq, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
858 } | 864 } |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1725 MachineOperatorBuilder::kFloat64RoundTruncate | | 1731 MachineOperatorBuilder::kFloat64RoundTruncate | |
1726 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1732 MachineOperatorBuilder::kFloat32RoundTiesEven | |
1727 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1733 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1728 } | 1734 } |
1729 return flags; | 1735 return flags; |
1730 } | 1736 } |
1731 | 1737 |
1732 } // namespace compiler | 1738 } // namespace compiler |
1733 } // namespace internal | 1739 } // namespace internal |
1734 } // namespace v8 | 1740 } // namespace v8 |
OLD | NEW |