| 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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 | 657 |
| 658 | 658 |
| 659 void InstructionSelector::VisitRoundInt32ToFloat32(Node* node) { | 659 void InstructionSelector::VisitRoundInt32ToFloat32(Node* node) { |
| 660 X87OperandGenerator g(this); | 660 X87OperandGenerator g(this); |
| 661 Emit(kX87Int32ToFloat32, g.DefineAsFixed(node, stX_0), | 661 Emit(kX87Int32ToFloat32, g.DefineAsFixed(node, stX_0), |
| 662 g.Use(node->InputAt(0))); | 662 g.Use(node->InputAt(0))); |
| 663 } | 663 } |
| 664 | 664 |
| 665 | 665 |
| 666 void InstructionSelector::VisitRoundUint32ToFloat32(Node* node) { | 666 void InstructionSelector::VisitRoundUint32ToFloat32(Node* node) { |
| 667 UNIMPLEMENTED(); | 667 X87OperandGenerator g(this); |
| 668 Emit(kX87Uint32ToFloat32, g.DefineAsFixed(node, stX_0), |
| 669 g.Use(node->InputAt(0))); |
| 668 } | 670 } |
| 669 | 671 |
| 670 | 672 |
| 671 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { | 673 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { |
| 672 X87OperandGenerator g(this); | 674 X87OperandGenerator g(this); |
| 673 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0), | 675 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0), |
| 674 g.Use(node->InputAt(0))); | 676 g.Use(node->InputAt(0))); |
| 675 } | 677 } |
| 676 | 678 |
| 677 | 679 |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1360 MachineOperatorBuilder::kFloat32RoundTruncate | | 1362 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1361 MachineOperatorBuilder::kFloat64RoundTruncate | | 1363 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1362 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1364 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 1363 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1365 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1364 return flags; | 1366 return flags; |
| 1365 } | 1367 } |
| 1366 | 1368 |
| 1367 } // namespace compiler | 1369 } // namespace compiler |
| 1368 } // namespace internal | 1370 } // namespace internal |
| 1369 } // namespace v8 | 1371 } // namespace v8 |
| OLD | NEW |