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 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 namespace compiler { | 10 namespace compiler { |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 | 552 |
553 void InstructionSelector::VisitFloat64Mod(Node* node) { | 553 void InstructionSelector::VisitFloat64Mod(Node* node) { |
554 X64OperandGenerator g(this); | 554 X64OperandGenerator g(this); |
555 InstructionOperand* temps[] = {g.TempRegister(rax)}; | 555 InstructionOperand* temps[] = {g.TempRegister(rax)}; |
556 Emit(kSSEFloat64Mod, g.DefineSameAsFirst(node), | 556 Emit(kSSEFloat64Mod, g.DefineSameAsFirst(node), |
557 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)), 1, | 557 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)), 1, |
558 temps); | 558 temps); |
559 } | 559 } |
560 | 560 |
561 | 561 |
| 562 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
| 563 X64OperandGenerator g(this); |
| 564 Emit(kSSEFloat64Sqrt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 565 } |
| 566 |
| 567 |
562 void InstructionSelector::VisitInt32AddWithOverflow(Node* node, | 568 void InstructionSelector::VisitInt32AddWithOverflow(Node* node, |
563 FlagsContinuation* cont) { | 569 FlagsContinuation* cont) { |
564 VisitBinop(this, node, kX64Add32, cont); | 570 VisitBinop(this, node, kX64Add32, cont); |
565 } | 571 } |
566 | 572 |
567 | 573 |
568 void InstructionSelector::VisitInt32SubWithOverflow(Node* node, | 574 void InstructionSelector::VisitInt32SubWithOverflow(Node* node, |
569 FlagsContinuation* cont) { | 575 FlagsContinuation* cont) { |
570 VisitBinop(this, node, kX64Sub32, cont); | 576 VisitBinop(this, node, kX64Sub32, cont); |
571 } | 577 } |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 call_instr->MarkAsCall(); | 714 call_instr->MarkAsCall(); |
709 if (deoptimization != NULL) { | 715 if (deoptimization != NULL) { |
710 DCHECK(continuation != NULL); | 716 DCHECK(continuation != NULL); |
711 call_instr->MarkAsControl(); | 717 call_instr->MarkAsControl(); |
712 } | 718 } |
713 } | 719 } |
714 | 720 |
715 } // namespace compiler | 721 } // namespace compiler |
716 } // namespace internal | 722 } // namespace internal |
717 } // namespace v8 | 723 } // namespace v8 |
OLD | NEW |