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/base/bits.h" | 6 #include "src/base/bits.h" |
7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
10 | 10 |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 } | 619 } |
620 } | 620 } |
621 VisitRR(this, kMipsTruncWD, node); | 621 VisitRR(this, kMipsTruncWD, node); |
622 } | 622 } |
623 | 623 |
624 | 624 |
625 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 625 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
626 VisitRR(this, kMipsTruncUwD, node); | 626 VisitRR(this, kMipsTruncUwD, node); |
627 } | 627 } |
628 | 628 |
| 629 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) { |
| 630 VisitRR(this, kMipsTruncUwD, node); |
| 631 } |
629 | 632 |
630 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { | 633 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { |
631 MipsOperandGenerator g(this); | 634 MipsOperandGenerator g(this); |
632 Node* value = node->InputAt(0); | 635 Node* value = node->InputAt(0); |
633 // Match TruncateFloat64ToFloat32(ChangeInt32ToFloat64) to corresponding | 636 // Match TruncateFloat64ToFloat32(ChangeInt32ToFloat64) to corresponding |
634 // instruction. | 637 // instruction. |
635 if (CanCover(node, value) && | 638 if (CanCover(node, value) && |
636 value->opcode() == IrOpcode::kChangeInt32ToFloat64) { | 639 value->opcode() == IrOpcode::kChangeInt32ToFloat64) { |
637 Emit(kMipsCvtSW, g.DefineAsRegister(node), | 640 Emit(kMipsCvtSW, g.DefineAsRegister(node), |
638 g.UseRegister(value->InputAt(0))); | 641 g.UseRegister(value->InputAt(0))); |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1398 MachineOperatorBuilder::kFloat32Max | | 1401 MachineOperatorBuilder::kFloat32Max | |
1399 MachineOperatorBuilder::kFloat32RoundDown | | 1402 MachineOperatorBuilder::kFloat32RoundDown | |
1400 MachineOperatorBuilder::kFloat32RoundUp | | 1403 MachineOperatorBuilder::kFloat32RoundUp | |
1401 MachineOperatorBuilder::kFloat32RoundTruncate | | 1404 MachineOperatorBuilder::kFloat32RoundTruncate | |
1402 MachineOperatorBuilder::kFloat32RoundTiesEven; | 1405 MachineOperatorBuilder::kFloat32RoundTiesEven; |
1403 } | 1406 } |
1404 | 1407 |
1405 } // namespace compiler | 1408 } // namespace compiler |
1406 } // namespace internal | 1409 } // namespace internal |
1407 } // namespace v8 | 1410 } // namespace v8 |
OLD | NEW |