| 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/compiler/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
| 6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
| 7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1569 VisitFloat64Compare(this, node, &cont); | 1569 VisitFloat64Compare(this, node, &cont); |
| 1570 } | 1570 } |
| 1571 | 1571 |
| 1572 | 1572 |
| 1573 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { | 1573 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { |
| 1574 FlagsContinuation cont(kUnsignedLessThanOrEqual, node); | 1574 FlagsContinuation cont(kUnsignedLessThanOrEqual, node); |
| 1575 VisitFloat64Compare(this, node, &cont); | 1575 VisitFloat64Compare(this, node, &cont); |
| 1576 } | 1576 } |
| 1577 | 1577 |
| 1578 | 1578 |
| 1579 void InstructionSelector::VisitFloat64ExtractLowWord32(Node* node) { |
| 1580 Arm64OperandGenerator g(this); |
| 1581 Emit(kArm64Float64ExtractLowWord32, g.DefineAsRegister(node), |
| 1582 g.UseRegister(node->InputAt(0))); |
| 1583 } |
| 1584 |
| 1585 |
| 1586 void InstructionSelector::VisitFloat64ExtractHighWord32(Node* node) { |
| 1587 Arm64OperandGenerator g(this); |
| 1588 Emit(kArm64Float64ExtractHighWord32, g.DefineAsRegister(node), |
| 1589 g.UseRegister(node->InputAt(0))); |
| 1590 } |
| 1591 |
| 1592 |
| 1593 void InstructionSelector::VisitFloat64InsertLowWord32(Node* node) { |
| 1594 // TODO(arm64): Some AArch64 specialist should be able to improve this. |
| 1595 Arm64OperandGenerator g(this); |
| 1596 Node* left = node->InputAt(0); |
| 1597 Node* right = node->InputAt(1); |
| 1598 Emit(kArm64Float64InsertLowWord32, g.DefineAsRegister(node), |
| 1599 g.UseRegister(left), g.UseRegister(right)); |
| 1600 } |
| 1601 |
| 1602 |
| 1603 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { |
| 1604 // TODO(arm64): Some AArch64 specialist should be able to improve this. |
| 1605 Arm64OperandGenerator g(this); |
| 1606 Node* left = node->InputAt(0); |
| 1607 Node* right = node->InputAt(1); |
| 1608 Emit(kArm64Float64InsertHighWord32, g.DefineAsRegister(node), |
| 1609 g.UseRegister(left), g.UseRegister(right)); |
| 1610 } |
| 1611 |
| 1612 |
| 1579 // static | 1613 // static |
| 1580 MachineOperatorBuilder::Flags | 1614 MachineOperatorBuilder::Flags |
| 1581 InstructionSelector::SupportedMachineOperatorFlags() { | 1615 InstructionSelector::SupportedMachineOperatorFlags() { |
| 1582 return MachineOperatorBuilder::kFloat64Floor | | 1616 return MachineOperatorBuilder::kFloat64Floor | |
| 1583 MachineOperatorBuilder::kFloat64Ceil | | 1617 MachineOperatorBuilder::kFloat64Ceil | |
| 1584 MachineOperatorBuilder::kFloat64RoundTruncate | | 1618 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1585 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1619 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1586 MachineOperatorBuilder::kWord32ShiftIsSafe | | 1620 MachineOperatorBuilder::kWord32ShiftIsSafe | |
| 1587 MachineOperatorBuilder::kInt32DivIsSafe | | 1621 MachineOperatorBuilder::kInt32DivIsSafe | |
| 1588 MachineOperatorBuilder::kUint32DivIsSafe; | 1622 MachineOperatorBuilder::kUint32DivIsSafe; |
| 1589 } | 1623 } |
| 1590 | 1624 |
| 1591 } // namespace compiler | 1625 } // namespace compiler |
| 1592 } // namespace internal | 1626 } // namespace internal |
| 1593 } // namespace v8 | 1627 } // namespace v8 |
| OLD | NEW |