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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 break; | 1039 break; |
1040 } | 1040 } |
1041 default: | 1041 default: |
1042 break; | 1042 break; |
1043 } | 1043 } |
1044 } | 1044 } |
1045 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(value)); | 1045 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(value)); |
1046 } | 1046 } |
1047 | 1047 |
1048 | 1048 |
| 1049 void InstructionSelector::VisitRoundInt32ToFloat32(Node* node) { |
| 1050 X64OperandGenerator g(this); |
| 1051 Emit(kSSEInt32ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 1052 } |
| 1053 |
| 1054 |
1049 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) { | 1055 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) { |
1050 X64OperandGenerator g(this); | 1056 X64OperandGenerator g(this); |
1051 Emit(kSSEInt64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 1057 Emit(kSSEInt64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
1052 } | 1058 } |
1053 | 1059 |
1054 | 1060 |
1055 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { | 1061 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { |
1056 X64OperandGenerator g(this); | 1062 X64OperandGenerator g(this); |
1057 Emit(kSSEInt64ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 1063 Emit(kSSEInt64ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
1058 } | 1064 } |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1801 MachineOperatorBuilder::kFloat64RoundTruncate | | 1807 MachineOperatorBuilder::kFloat64RoundTruncate | |
1802 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1808 MachineOperatorBuilder::kFloat32RoundTiesEven | |
1803 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1809 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1804 } | 1810 } |
1805 return flags; | 1811 return flags; |
1806 } | 1812 } |
1807 | 1813 |
1808 } // namespace compiler | 1814 } // namespace compiler |
1809 } // namespace internal | 1815 } // namespace internal |
1810 } // namespace v8 | 1816 } // namespace v8 |
OLD | NEW |