| 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 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 Emit(kSSEInt64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 964 Emit(kSSEInt64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 965 } | 965 } |
| 966 | 966 |
| 967 | 967 |
| 968 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { | 968 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { |
| 969 X64OperandGenerator g(this); | 969 X64OperandGenerator g(this); |
| 970 Emit(kSSEInt64ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 970 Emit(kSSEInt64ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 971 } | 971 } |
| 972 | 972 |
| 973 | 973 |
| 974 void InstructionSelector::VisitRoundUint64ToFloat32(Node* node) { |
| 975 X64OperandGenerator g(this); |
| 976 InstructionOperand temps[] = {g.TempRegister()}; |
| 977 Emit(kSSEUint64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0)), |
| 978 arraysize(temps), temps); |
| 979 } |
| 980 |
| 981 |
| 974 void InstructionSelector::VisitRoundUint64ToFloat64(Node* node) { | 982 void InstructionSelector::VisitRoundUint64ToFloat64(Node* node) { |
| 975 X64OperandGenerator g(this); | 983 X64OperandGenerator g(this); |
| 976 InstructionOperand temps[] = {g.TempRegister()}; | 984 InstructionOperand temps[] = {g.TempRegister()}; |
| 977 Emit(kSSEUint64ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0)), | 985 Emit(kSSEUint64ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0)), |
| 978 arraysize(temps), temps); | 986 arraysize(temps), temps); |
| 979 } | 987 } |
| 980 | 988 |
| 981 | 989 |
| 982 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { | 990 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { |
| 983 X64OperandGenerator g(this); | 991 X64OperandGenerator g(this); |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1675 MachineOperatorBuilder::kFloat64RoundUp | | 1683 MachineOperatorBuilder::kFloat64RoundUp | |
| 1676 MachineOperatorBuilder::kFloat64RoundTruncate | | 1684 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1677 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1685 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1678 } | 1686 } |
| 1679 return flags; | 1687 return flags; |
| 1680 } | 1688 } |
| 1681 | 1689 |
| 1682 } // namespace compiler | 1690 } // namespace compiler |
| 1683 } // namespace internal | 1691 } // namespace internal |
| 1684 } // namespace v8 | 1692 } // namespace v8 |
| OLD | NEW |