| 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 g.UseRegister(node->InputAt(0))); | 675 g.UseRegister(node->InputAt(0))); |
| 676 } | 676 } |
| 677 | 677 |
| 678 | 678 |
| 679 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { | 679 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { |
| 680 X87OperandGenerator g(this); | 680 X87OperandGenerator g(this); |
| 681 Emit(kX87Float32ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 681 Emit(kX87Float32ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 682 } | 682 } |
| 683 | 683 |
| 684 | 684 |
| 685 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) { |
| 686 UNIMPLEMENTED(); |
| 687 } |
| 688 |
| 689 |
| 685 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { | 690 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { |
| 686 X87OperandGenerator g(this); | 691 X87OperandGenerator g(this); |
| 687 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 692 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 688 } | 693 } |
| 689 | 694 |
| 690 | 695 |
| 691 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 696 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
| 692 X87OperandGenerator g(this); | 697 X87OperandGenerator g(this); |
| 693 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 698 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 694 } | 699 } |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 MachineOperatorBuilder::kFloat32RoundTruncate | | 1354 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1350 MachineOperatorBuilder::kFloat64RoundTruncate | | 1355 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1351 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1356 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 1352 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1357 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1353 return flags; | 1358 return flags; |
| 1354 } | 1359 } |
| 1355 | 1360 |
| 1356 } // namespace compiler | 1361 } // namespace compiler |
| 1357 } // namespace internal | 1362 } // namespace internal |
| 1358 } // namespace v8 | 1363 } // namespace v8 |
| OLD | NEW |