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 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 | 1445 |
1446 | 1446 |
1447 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { | 1447 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { |
1448 MipsOperandGenerator g(this); | 1448 MipsOperandGenerator g(this); |
1449 Node* left = node->InputAt(0); | 1449 Node* left = node->InputAt(0); |
1450 Node* right = node->InputAt(1); | 1450 Node* right = node->InputAt(1); |
1451 Emit(kMipsFloat64InsertHighWord32, g.DefineSameAsFirst(node), | 1451 Emit(kMipsFloat64InsertHighWord32, g.DefineSameAsFirst(node), |
1452 g.UseRegister(left), g.UseRegister(right)); | 1452 g.UseRegister(left), g.UseRegister(right)); |
1453 } | 1453 } |
1454 | 1454 |
1455 void InstructionSelector::VisitAtomicLoad(Node* node) { | |
1456 // TODO(binji) | |
1457 } | |
1458 | 1455 |
1459 // static | 1456 // static |
1460 MachineOperatorBuilder::Flags | 1457 MachineOperatorBuilder::Flags |
1461 InstructionSelector::SupportedMachineOperatorFlags() { | 1458 InstructionSelector::SupportedMachineOperatorFlags() { |
1462 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; | 1459 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; |
1463 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && | 1460 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
1464 IsFp64Mode()) { | 1461 IsFp64Mode()) { |
1465 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1462 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1466 MachineOperatorBuilder::kFloat64RoundUp | | 1463 MachineOperatorBuilder::kFloat64RoundUp | |
1467 MachineOperatorBuilder::kFloat64RoundTruncate | | 1464 MachineOperatorBuilder::kFloat64RoundTruncate | |
(...skipping 10 matching lines...) Expand all Loading... |
1478 MachineOperatorBuilder::kFloat32Max | | 1475 MachineOperatorBuilder::kFloat32Max | |
1479 MachineOperatorBuilder::kFloat32RoundDown | | 1476 MachineOperatorBuilder::kFloat32RoundDown | |
1480 MachineOperatorBuilder::kFloat32RoundUp | | 1477 MachineOperatorBuilder::kFloat32RoundUp | |
1481 MachineOperatorBuilder::kFloat32RoundTruncate | | 1478 MachineOperatorBuilder::kFloat32RoundTruncate | |
1482 MachineOperatorBuilder::kFloat32RoundTiesEven; | 1479 MachineOperatorBuilder::kFloat32RoundTiesEven; |
1483 } | 1480 } |
1484 | 1481 |
1485 } // namespace compiler | 1482 } // namespace compiler |
1486 } // namespace internal | 1483 } // namespace internal |
1487 } // namespace v8 | 1484 } // namespace v8 |
OLD | NEW |