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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 } | 492 } |
493 | 493 |
494 | 494 |
495 void InstructionSelector::VisitUint32Mod(Node* node) { | 495 void InstructionSelector::VisitUint32Mod(Node* node) { |
496 VisitMod(this, node, kIA32Udiv); | 496 VisitMod(this, node, kIA32Udiv); |
497 } | 497 } |
498 | 498 |
499 | 499 |
500 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { | 500 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { |
501 IA32OperandGenerator g(this); | 501 IA32OperandGenerator g(this); |
502 // TODO(turbofan): IA32 SSE conversions should take an operand. | 502 Emit(kSSECvtss2sd, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
503 Emit(kSSECvtss2sd, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); | |
504 } | 503 } |
505 | 504 |
506 | 505 |
507 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { | 506 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { |
508 IA32OperandGenerator g(this); | 507 IA32OperandGenerator g(this); |
509 Emit(kSSEInt32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 508 Emit(kSSEInt32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
510 } | 509 } |
511 | 510 |
512 | 511 |
513 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { | 512 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { |
(...skipping 195 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 |