| 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 return; | 657 return; |
| 658 case TruncationMode::kRoundToZero: | 658 case TruncationMode::kRoundToZero: |
| 659 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), | 659 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), |
| 660 g.Use(node->InputAt(0))); | 660 g.Use(node->InputAt(0))); |
| 661 return; | 661 return; |
| 662 } | 662 } |
| 663 UNREACHABLE(); | 663 UNREACHABLE(); |
| 664 } | 664 } |
| 665 | 665 |
| 666 | 666 |
| 667 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { |
| 668 UNIMPLEMENTED(); |
| 669 } |
| 670 |
| 671 |
| 672 void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) { |
| 673 UNIMPLEMENTED(); |
| 674 } |
| 675 |
| 676 |
| 667 void InstructionSelector::VisitFloat32Add(Node* node) { | 677 void InstructionSelector::VisitFloat32Add(Node* node) { |
| 668 X87OperandGenerator g(this); | 678 X87OperandGenerator g(this); |
| 669 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); | 679 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); |
| 670 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1))); | 680 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1))); |
| 671 Emit(kX87Float32Add, g.DefineAsFixed(node, stX_0), 0, NULL); | 681 Emit(kX87Float32Add, g.DefineAsFixed(node, stX_0), 0, NULL); |
| 672 } | 682 } |
| 673 | 683 |
| 674 | 684 |
| 675 void InstructionSelector::VisitFloat64Add(Node* node) { | 685 void InstructionSelector::VisitFloat64Add(Node* node) { |
| 676 X87OperandGenerator g(this); | 686 X87OperandGenerator g(this); |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 MachineOperatorBuilder::kFloat32Min | | 1361 MachineOperatorBuilder::kFloat32Min | |
| 1352 MachineOperatorBuilder::kFloat64Max | | 1362 MachineOperatorBuilder::kFloat64Max | |
| 1353 MachineOperatorBuilder::kFloat64Min | | 1363 MachineOperatorBuilder::kFloat64Min | |
| 1354 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1364 MachineOperatorBuilder::kWord32ShiftIsSafe; |
| 1355 return flags; | 1365 return flags; |
| 1356 } | 1366 } |
| 1357 | 1367 |
| 1358 } // namespace compiler | 1368 } // namespace compiler |
| 1359 } // namespace internal | 1369 } // namespace internal |
| 1360 } // namespace v8 | 1370 } // namespace v8 |
| OLD | NEW |