| 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 } |
| 1455 | 1458 |
| 1456 // static | 1459 // static |
| 1457 MachineOperatorBuilder::Flags | 1460 MachineOperatorBuilder::Flags |
| 1458 InstructionSelector::SupportedMachineOperatorFlags() { | 1461 InstructionSelector::SupportedMachineOperatorFlags() { |
| 1459 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; | 1462 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; |
| 1460 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && | 1463 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
| 1461 IsFp64Mode()) { | 1464 IsFp64Mode()) { |
| 1462 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1465 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
| 1463 MachineOperatorBuilder::kFloat64RoundUp | | 1466 MachineOperatorBuilder::kFloat64RoundUp | |
| 1464 MachineOperatorBuilder::kFloat64RoundTruncate | | 1467 MachineOperatorBuilder::kFloat64RoundTruncate | |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1475 MachineOperatorBuilder::kFloat32Max | | 1478 MachineOperatorBuilder::kFloat32Max | |
| 1476 MachineOperatorBuilder::kFloat32RoundDown | | 1479 MachineOperatorBuilder::kFloat32RoundDown | |
| 1477 MachineOperatorBuilder::kFloat32RoundUp | | 1480 MachineOperatorBuilder::kFloat32RoundUp | |
| 1478 MachineOperatorBuilder::kFloat32RoundTruncate | | 1481 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1479 MachineOperatorBuilder::kFloat32RoundTiesEven; | 1482 MachineOperatorBuilder::kFloat32RoundTiesEven; |
| 1480 } | 1483 } |
| 1481 | 1484 |
| 1482 } // namespace compiler | 1485 } // namespace compiler |
| 1483 } // namespace internal | 1486 } // namespace internal |
| 1484 } // namespace v8 | 1487 } // namespace v8 |
| OLD | NEW |