| 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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 } | 601 } |
| 602 | 602 |
| 603 | 603 |
| 604 void InstructionSelector::VisitUint64Mod(Node* node) { | 604 void InstructionSelector::VisitUint64Mod(Node* node) { |
| 605 VisitMod(this, node, kX64Udiv); | 605 VisitMod(this, node, kX64Udiv); |
| 606 } | 606 } |
| 607 | 607 |
| 608 | 608 |
| 609 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { | 609 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { |
| 610 X64OperandGenerator g(this); | 610 X64OperandGenerator g(this); |
| 611 // TODO(turbofan): X64 SSE conversions should take an operand. | 611 Emit(kSSECvtss2sd, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 612 Emit(kSSECvtss2sd, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); | |
| 613 } | 612 } |
| 614 | 613 |
| 615 | 614 |
| 616 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { | 615 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { |
| 617 X64OperandGenerator g(this); | 616 X64OperandGenerator g(this); |
| 618 Emit(kSSEInt32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 617 Emit(kSSEInt32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 619 } | 618 } |
| 620 | 619 |
| 621 | 620 |
| 622 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { | 621 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { |
| (...skipping 229 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 |