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/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
7 #include "src/compiler/node-properties-inl.h" | 7 #include "src/compiler/node-properties-inl.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 | 523 |
524 | 524 |
525 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 525 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
526 IA32OperandGenerator g(this); | 526 IA32OperandGenerator g(this); |
527 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 527 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
528 } | 528 } |
529 | 529 |
530 | 530 |
531 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { | 531 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { |
532 IA32OperandGenerator g(this); | 532 IA32OperandGenerator g(this); |
533 // TODO(turbofan): IA32 SSE conversions should take an operand. | 533 Emit(kSSECvtsd2ss, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
534 Emit(kSSECvtsd2ss, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); | |
535 } | 534 } |
536 | 535 |
537 | 536 |
538 void InstructionSelector::VisitFloat64Add(Node* node) { | 537 void InstructionSelector::VisitFloat64Add(Node* node) { |
539 IA32OperandGenerator g(this); | 538 IA32OperandGenerator g(this); |
540 Emit(kSSEFloat64Add, g.DefineSameAsFirst(node), | 539 Emit(kSSEFloat64Add, g.DefineSameAsFirst(node), |
541 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))); | 540 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))); |
542 } | 541 } |
543 | 542 |
544 | 543 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 call_instr->MarkAsCall(); | 708 call_instr->MarkAsCall(); |
710 if (deoptimization != NULL) { | 709 if (deoptimization != NULL) { |
711 DCHECK(continuation != NULL); | 710 DCHECK(continuation != NULL); |
712 call_instr->MarkAsControl(); | 711 call_instr->MarkAsControl(); |
713 } | 712 } |
714 } | 713 } |
715 | 714 |
716 } // namespace compiler | 715 } // namespace compiler |
717 } // namespace internal | 716 } // namespace internal |
718 } // namespace v8 | 717 } // namespace v8 |
OLD | NEW |