| 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 | 649 |
| 650 | 650 |
| 651 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { | 651 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { |
| 652 X87OperandGenerator g(this); | 652 X87OperandGenerator g(this); |
| 653 Emit(kX87Float32ToFloat64, g.DefineAsFixed(node, stX_0), | 653 Emit(kX87Float32ToFloat64, g.DefineAsFixed(node, stX_0), |
| 654 g.Use(node->InputAt(0))); | 654 g.Use(node->InputAt(0))); |
| 655 } | 655 } |
| 656 | 656 |
| 657 | 657 |
| 658 void InstructionSelector::VisitRoundInt32ToFloat32(Node* node) { | 658 void InstructionSelector::VisitRoundInt32ToFloat32(Node* node) { |
| 659 UNIMPLEMENTED(); | 659 X87OperandGenerator g(this); |
| 660 Emit(kX87Int32ToFloat32, g.DefineAsFixed(node, stX_0), |
| 661 g.Use(node->InputAt(0))); |
| 660 } | 662 } |
| 661 | 663 |
| 662 | 664 |
| 663 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { | 665 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { |
| 664 X87OperandGenerator g(this); | 666 X87OperandGenerator g(this); |
| 665 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0), | 667 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0), |
| 666 g.Use(node->InputAt(0))); | 668 g.Use(node->InputAt(0))); |
| 667 } | 669 } |
| 668 | 670 |
| 669 | 671 |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1347 MachineOperatorBuilder::kFloat32RoundTruncate | | 1349 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1348 MachineOperatorBuilder::kFloat64RoundTruncate | | 1350 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1349 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1351 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 1350 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1352 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1351 return flags; | 1353 return flags; |
| 1352 } | 1354 } |
| 1353 | 1355 |
| 1354 } // namespace compiler | 1356 } // namespace compiler |
| 1355 } // namespace internal | 1357 } // namespace internal |
| 1356 } // namespace v8 | 1358 } // namespace v8 |
| OLD | NEW |