| 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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 Emit(kSSEFloat64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 827 Emit(kSSEFloat64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 828 } | 828 } |
| 829 | 829 |
| 830 | 830 |
| 831 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 831 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
| 832 X64OperandGenerator g(this); | 832 X64OperandGenerator g(this); |
| 833 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 833 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 834 } | 834 } |
| 835 | 835 |
| 836 | 836 |
| 837 void InstructionSelector::VisitTruncateFloat32ToInt64(Node* node) { | |
| 838 X64OperandGenerator g(this); | |
| 839 Emit(kSSEFloat32ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | |
| 840 } | |
| 841 | |
| 842 | |
| 843 void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) { | 837 void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) { |
| 844 X64OperandGenerator g(this); | 838 X64OperandGenerator g(this); |
| 845 Emit(kSSEFloat64ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 839 Emit(kSSEFloat64ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 846 } | 840 } |
| 847 | 841 |
| 848 | 842 |
| 849 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) { | 843 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) { |
| 850 X64OperandGenerator g(this); | 844 X64OperandGenerator g(this); |
| 851 Emit(kSSEFloat64ToUint64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 845 Emit(kSSEFloat64ToUint64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 852 } | 846 } |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1713 MachineOperatorBuilder::kFloat64RoundUp | | 1707 MachineOperatorBuilder::kFloat64RoundUp | |
| 1714 MachineOperatorBuilder::kFloat64RoundTruncate | | 1708 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1715 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1709 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1716 } | 1710 } |
| 1717 return flags; | 1711 return flags; |
| 1718 } | 1712 } |
| 1719 | 1713 |
| 1720 } // namespace compiler | 1714 } // namespace compiler |
| 1721 } // namespace internal | 1715 } // namespace internal |
| 1722 } // namespace v8 | 1716 } // namespace v8 |
| OLD | NEW |