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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 | 869 |
870 void InstructionSelector::VisitFloat32Abs(Node* node) { | 870 void InstructionSelector::VisitFloat32Abs(Node* node) { |
871 VisitRR(this, kMipsAbsS, node); | 871 VisitRR(this, kMipsAbsS, node); |
872 } | 872 } |
873 | 873 |
874 | 874 |
875 void InstructionSelector::VisitFloat64Abs(Node* node) { | 875 void InstructionSelector::VisitFloat64Abs(Node* node) { |
876 VisitRR(this, kMipsAbsD, node); | 876 VisitRR(this, kMipsAbsD, node); |
877 } | 877 } |
878 | 878 |
| 879 void InstructionSelector::VisitFloat64Log(Node* node) { |
| 880 MipsOperandGenerator g(this); |
| 881 Emit(kMipsLogD, g.DefineAsFixed(node, f0), g.UseFixed(node->InputAt(0), f12)) |
| 882 ->MarkAsCall(); |
| 883 } |
879 | 884 |
880 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 885 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
881 VisitRR(this, kMipsSqrtS, node); | 886 VisitRR(this, kMipsSqrtS, node); |
882 } | 887 } |
883 | 888 |
884 | 889 |
885 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 890 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
886 VisitRR(this, kMipsSqrtD, node); | 891 VisitRR(this, kMipsSqrtD, node); |
887 } | 892 } |
888 | 893 |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1561 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || | 1566 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || |
1562 IsMipsArchVariant(kMips32r2)); | 1567 IsMipsArchVariant(kMips32r2)); |
1563 return MachineOperatorBuilder::AlignmentRequirements:: | 1568 return MachineOperatorBuilder::AlignmentRequirements:: |
1564 NoUnalignedAccessSupport(); | 1569 NoUnalignedAccessSupport(); |
1565 } | 1570 } |
1566 } | 1571 } |
1567 | 1572 |
1568 } // namespace compiler | 1573 } // namespace compiler |
1569 } // namespace internal | 1574 } // namespace internal |
1570 } // namespace v8 | 1575 } // namespace v8 |
OLD | NEW |