| 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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 } | 648 } |
| 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) { |
| 659 UNIMPLEMENTED(); |
| 660 } |
| 661 |
| 662 |
| 658 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { | 663 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { |
| 659 X87OperandGenerator g(this); | 664 X87OperandGenerator g(this); |
| 660 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0), | 665 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0), |
| 661 g.Use(node->InputAt(0))); | 666 g.Use(node->InputAt(0))); |
| 662 } | 667 } |
| 663 | 668 |
| 664 | 669 |
| 665 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { | 670 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { |
| 666 X87OperandGenerator g(this); | 671 X87OperandGenerator g(this); |
| 667 Emit(kX87Uint32ToFloat64, g.DefineAsFixed(node, stX_0), | 672 Emit(kX87Uint32ToFloat64, g.DefineAsFixed(node, stX_0), |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 MachineOperatorBuilder::kFloat32RoundTruncate | | 1341 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1337 MachineOperatorBuilder::kFloat64RoundTruncate | | 1342 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1338 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1343 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 1339 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1344 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1340 return flags; | 1345 return flags; |
| 1341 } | 1346 } |
| 1342 | 1347 |
| 1343 } // namespace compiler | 1348 } // namespace compiler |
| 1344 } // namespace internal | 1349 } // namespace internal |
| 1345 } // namespace v8 | 1350 } // namespace v8 |
| OLD | NEW |