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 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 VisitRR(this, kMips64AbsS, node); | 1277 VisitRR(this, kMips64AbsS, node); |
1278 } | 1278 } |
1279 | 1279 |
1280 | 1280 |
1281 void InstructionSelector::VisitFloat64Abs(Node* node) { | 1281 void InstructionSelector::VisitFloat64Abs(Node* node) { |
1282 VisitRR(this, kMips64AbsD, node); | 1282 VisitRR(this, kMips64AbsD, node); |
1283 } | 1283 } |
1284 | 1284 |
1285 void InstructionSelector::VisitFloat64Log(Node* node) { | 1285 void InstructionSelector::VisitFloat64Log(Node* node) { |
1286 Mips64OperandGenerator g(this); | 1286 Mips64OperandGenerator g(this); |
1287 Emit(kMips64LogD, g.DefineAsFixed(node, f0), | 1287 Emit(kIeee754Float64Log, g.DefineAsFixed(node, f0), |
1288 g.UseFixed(node->InputAt(0), f12)) | 1288 g.UseFixed(node->InputAt(0), f12)) |
1289 ->MarkAsCall(); | 1289 ->MarkAsCall(); |
1290 } | 1290 } |
1291 | 1291 |
1292 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 1292 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
1293 VisitRR(this, kMips64SqrtS, node); | 1293 VisitRR(this, kMips64SqrtS, node); |
1294 } | 1294 } |
1295 | 1295 |
1296 | 1296 |
1297 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 1297 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2075 } else { | 2075 } else { |
2076 DCHECK(kArchVariant == kMips64r2); | 2076 DCHECK(kArchVariant == kMips64r2); |
2077 return MachineOperatorBuilder::AlignmentRequirements:: | 2077 return MachineOperatorBuilder::AlignmentRequirements:: |
2078 NoUnalignedAccessSupport(); | 2078 NoUnalignedAccessSupport(); |
2079 } | 2079 } |
2080 } | 2080 } |
2081 | 2081 |
2082 } // namespace compiler | 2082 } // namespace compiler |
2083 } // namespace internal | 2083 } // namespace internal |
2084 } // namespace v8 | 2084 } // namespace v8 |
OLD | NEW |