| 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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 833 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 834 } | 834 } |
| 835 | 835 |
| 836 | 836 |
| 837 void InstructionSelector::VisitChangeFloat64ToInt64(Node* node) { | 837 void InstructionSelector::VisitChangeFloat64ToInt64(Node* node) { |
| 838 X64OperandGenerator g(this); | 838 X64OperandGenerator g(this); |
| 839 Emit(kSSEFloat64ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 839 Emit(kSSEFloat64ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 840 } | 840 } |
| 841 | 841 |
| 842 | 842 |
| 843 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) { |
| 844 X64OperandGenerator g(this); |
| 845 Emit(kSSEFloat64ToUint64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 846 } |
| 847 |
| 848 |
| 843 void InstructionSelector::VisitChangeInt32ToInt64(Node* node) { | 849 void InstructionSelector::VisitChangeInt32ToInt64(Node* node) { |
| 844 X64OperandGenerator g(this); | 850 X64OperandGenerator g(this); |
| 845 Emit(kX64Movsxlq, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 851 Emit(kX64Movsxlq, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 846 } | 852 } |
| 847 | 853 |
| 848 | 854 |
| 849 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) { | 855 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) { |
| 850 X64OperandGenerator g(this); | 856 X64OperandGenerator g(this); |
| 851 Node* value = node->InputAt(0); | 857 Node* value = node->InputAt(0); |
| 852 switch (value->opcode()) { | 858 switch (value->opcode()) { |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1689 MachineOperatorBuilder::kFloat64RoundUp | | 1695 MachineOperatorBuilder::kFloat64RoundUp | |
| 1690 MachineOperatorBuilder::kFloat64RoundTruncate | | 1696 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1691 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1697 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1692 } | 1698 } |
| 1693 return flags; | 1699 return flags; |
| 1694 } | 1700 } |
| 1695 | 1701 |
| 1696 } // namespace compiler | 1702 } // namespace compiler |
| 1697 } // namespace internal | 1703 } // namespace internal |
| 1698 } // namespace v8 | 1704 } // namespace v8 |
| OLD | NEW |