| 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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 X87OperandGenerator g(this); | 813 X87OperandGenerator g(this); |
| 814 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 814 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 815 } | 815 } |
| 816 | 816 |
| 817 | 817 |
| 818 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 818 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
| 819 X87OperandGenerator g(this); | 819 X87OperandGenerator g(this); |
| 820 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 820 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 821 } | 821 } |
| 822 | 822 |
| 823 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) { |
| 824 X87OperandGenerator g(this); |
| 825 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 826 } |
| 823 | 827 |
| 824 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { | 828 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { |
| 825 X87OperandGenerator g(this); | 829 X87OperandGenerator g(this); |
| 826 Emit(kX87Float64ToFloat32, g.DefineAsFixed(node, stX_0), | 830 Emit(kX87Float64ToFloat32, g.DefineAsFixed(node, stX_0), |
| 827 g.Use(node->InputAt(0))); | 831 g.Use(node->InputAt(0))); |
| 828 } | 832 } |
| 829 | 833 |
| 830 | 834 |
| 831 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { | 835 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { |
| 832 X87OperandGenerator g(this); | 836 X87OperandGenerator g(this); |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 MachineOperatorBuilder::kFloat32RoundTruncate | | 1570 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1567 MachineOperatorBuilder::kFloat64RoundTruncate | | 1571 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1568 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1572 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 1569 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1573 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1570 return flags; | 1574 return flags; |
| 1571 } | 1575 } |
| 1572 | 1576 |
| 1573 } // namespace compiler | 1577 } // namespace compiler |
| 1574 } // namespace internal | 1578 } // namespace internal |
| 1575 } // namespace v8 | 1579 } // namespace v8 |
| OLD | NEW |