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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 X87OperandGenerator g(this); | 829 X87OperandGenerator g(this); |
830 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 830 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
831 } | 831 } |
832 | 832 |
833 | 833 |
834 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 834 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
835 X87OperandGenerator g(this); | 835 X87OperandGenerator g(this); |
836 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 836 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
837 } | 837 } |
838 | 838 |
| 839 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) { |
| 840 X87OperandGenerator g(this); |
| 841 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 842 } |
839 | 843 |
840 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { | 844 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { |
841 X87OperandGenerator g(this); | 845 X87OperandGenerator g(this); |
842 Emit(kX87Float64ToFloat32, g.DefineAsFixed(node, stX_0), | 846 Emit(kX87Float64ToFloat32, g.DefineAsFixed(node, stX_0), |
843 g.Use(node->InputAt(0))); | 847 g.Use(node->InputAt(0))); |
844 } | 848 } |
845 | 849 |
846 | 850 |
847 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { | 851 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { |
848 X87OperandGenerator g(this); | 852 X87OperandGenerator g(this); |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 MachineOperatorBuilder::kFloat32RoundTruncate | | 1586 MachineOperatorBuilder::kFloat32RoundTruncate | |
1583 MachineOperatorBuilder::kFloat64RoundTruncate | | 1587 MachineOperatorBuilder::kFloat64RoundTruncate | |
1584 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1588 MachineOperatorBuilder::kFloat32RoundTiesEven | |
1585 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1589 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1586 return flags; | 1590 return flags; |
1587 } | 1591 } |
1588 | 1592 |
1589 } // namespace compiler | 1593 } // namespace compiler |
1590 } // namespace internal | 1594 } // namespace internal |
1591 } // namespace v8 | 1595 } // namespace v8 |
OLD | NEW |