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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "src/base/adapters.h" | 7 #include "src/base/adapters.h" |
8 #include "src/compiler/instruction-selector-impl.h" | 8 #include "src/compiler/instruction-selector-impl.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1612 Node* right = node->InputAt(1); | 1612 Node* right = node->InputAt(1); |
1613 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), | 1613 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), |
1614 g.UseRegister(left), g.Use(right)); | 1614 g.UseRegister(left), g.Use(right)); |
1615 } | 1615 } |
1616 | 1616 |
1617 | 1617 |
1618 // static | 1618 // static |
1619 MachineOperatorBuilder::Flags | 1619 MachineOperatorBuilder::Flags |
1620 InstructionSelector::SupportedMachineOperatorFlags() { | 1620 InstructionSelector::SupportedMachineOperatorFlags() { |
1621 MachineOperatorBuilder::Flags flags = | 1621 MachineOperatorBuilder::Flags flags = |
1622 MachineOperatorBuilder::kFloat32Abs | | |
1623 MachineOperatorBuilder::kFloat32Max | | 1622 MachineOperatorBuilder::kFloat32Max | |
1624 MachineOperatorBuilder::kFloat32Min | | 1623 MachineOperatorBuilder::kFloat32Min | |
1625 MachineOperatorBuilder::kFloat64Abs | | |
1626 MachineOperatorBuilder::kFloat64Max | | 1624 MachineOperatorBuilder::kFloat64Max | |
1627 MachineOperatorBuilder::kFloat64Min | | 1625 MachineOperatorBuilder::kFloat64Min | |
1628 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1626 MachineOperatorBuilder::kWord32ShiftIsSafe; |
1629 if (CpuFeatures::IsSupported(SSE4_1)) { | 1627 if (CpuFeatures::IsSupported(SSE4_1)) { |
1630 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1628 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1631 MachineOperatorBuilder::kFloat64RoundTruncate; | 1629 MachineOperatorBuilder::kFloat64RoundTruncate; |
1632 } | 1630 } |
1633 return flags; | 1631 return flags; |
1634 } | 1632 } |
1635 | 1633 |
1636 } // namespace compiler | 1634 } // namespace compiler |
1637 } // namespace internal | 1635 } // namespace internal |
1638 } // namespace v8 | 1636 } // namespace v8 |
OLD | NEW |