| 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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 Emit(kX64Tzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 615 Emit(kX64Tzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 616 } | 616 } |
| 617 | 617 |
| 618 | 618 |
| 619 void InstructionSelector::VisitWord32Ctz(Node* node) { | 619 void InstructionSelector::VisitWord32Ctz(Node* node) { |
| 620 X64OperandGenerator g(this); | 620 X64OperandGenerator g(this); |
| 621 Emit(kX64Tzcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 621 Emit(kX64Tzcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 622 } | 622 } |
| 623 | 623 |
| 624 | 624 |
| 625 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } |
| 626 |
| 627 |
| 628 void InstructionSelector::VisitWord64ReverseBits(Node* node) { UNREACHABLE(); } |
| 629 |
| 630 |
| 625 void InstructionSelector::VisitWord32Popcnt(Node* node) { | 631 void InstructionSelector::VisitWord32Popcnt(Node* node) { |
| 626 X64OperandGenerator g(this); | 632 X64OperandGenerator g(this); |
| 627 Emit(kX64Popcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 633 Emit(kX64Popcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 628 } | 634 } |
| 629 | 635 |
| 630 | 636 |
| 631 void InstructionSelector::VisitWord64Popcnt(Node* node) { | 637 void InstructionSelector::VisitWord64Popcnt(Node* node) { |
| 632 X64OperandGenerator g(this); | 638 X64OperandGenerator g(this); |
| 633 Emit(kX64Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 639 Emit(kX64Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 634 } | 640 } |
| (...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1826 MachineOperatorBuilder::kFloat64RoundTruncate | | 1832 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1827 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1833 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 1828 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1834 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1829 } | 1835 } |
| 1830 return flags; | 1836 return flags; |
| 1831 } | 1837 } |
| 1832 | 1838 |
| 1833 } // namespace compiler | 1839 } // namespace compiler |
| 1834 } // namespace internal | 1840 } // namespace internal |
| 1835 } // namespace v8 | 1841 } // namespace v8 |
| OLD | NEW |