| 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/generic-node-inl.h" | 5 #include "src/compiler/generic-node-inl.h" |
| 6 #include "src/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
| 7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 | 644 |
| 645 | 645 |
| 646 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) { | 646 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) { |
| 647 X64OperandGenerator g(this); | 647 X64OperandGenerator g(this); |
| 648 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 648 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 649 } | 649 } |
| 650 | 650 |
| 651 | 651 |
| 652 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { | 652 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { |
| 653 X64OperandGenerator g(this); | 653 X64OperandGenerator g(this); |
| 654 // TODO(turbofan): X64 SSE conversions should take an operand. | 654 Emit(kSSECvtsd2ss, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 655 Emit(kSSECvtsd2ss, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); | |
| 656 } | 655 } |
| 657 | 656 |
| 658 | 657 |
| 659 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { | 658 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { |
| 660 X64OperandGenerator g(this); | 659 X64OperandGenerator g(this); |
| 661 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 660 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 662 } | 661 } |
| 663 | 662 |
| 664 | 663 |
| 665 void InstructionSelector::VisitFloat64Add(Node* node) { | 664 void InstructionSelector::VisitFloat64Add(Node* node) { |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 call_instr->MarkAsCall(); | 851 call_instr->MarkAsCall(); |
| 853 if (deoptimization != NULL) { | 852 if (deoptimization != NULL) { |
| 854 DCHECK(continuation != NULL); | 853 DCHECK(continuation != NULL); |
| 855 call_instr->MarkAsControl(); | 854 call_instr->MarkAsControl(); |
| 856 } | 855 } |
| 857 } | 856 } |
| 858 | 857 |
| 859 } // namespace compiler | 858 } // namespace compiler |
| 860 } // namespace internal | 859 } // namespace internal |
| 861 } // namespace v8 | 860 } // namespace v8 |
| OLD | NEW |